feat: enable dashboard lock
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<div class="flex flex-col items-center justify-center dark:text-white gap-3 w-4/5 lg:w-2/5">
|
<div class="flex flex-col items-center justify-center dark:text-white gap-3 w-4/5 lg:w-2/5">
|
||||||
<p class="text-4xl dark:text-white font-semibold mt-5">Restricted Page</p>
|
<p class="text-4xl dark:text-white font-semibold mt-5">Restricted Page</p>
|
||||||
<p class=" text-gray-700 text-lg text-center dark:text-white mb-5">
|
<p class=" text-gray-700 text-lg text-center dark:text-white mb-5">
|
||||||
This organization is restricted. In the mean time, you can go back to the homepage.
|
This organization is restricted. In the mean time, you can checkout our features.
|
||||||
</p>
|
</p>
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
variant={VARIANTS.CONTAINED_DARK}
|
variant={VARIANTS.CONTAINED_DARK}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ export async function getOrganizations(userId: string, isOrgSite?: boolean, orgS
|
|||||||
avatar_url,
|
avatar_url,
|
||||||
landingpage,
|
landingpage,
|
||||||
customization,
|
customization,
|
||||||
|
is_restricted,
|
||||||
theme,
|
theme,
|
||||||
created_at,
|
created_at,
|
||||||
organization_plan(
|
organization_plan(
|
||||||
@@ -115,6 +116,7 @@ export async function getOrganizations(userId: string, isOrgSite?: boolean, orgS
|
|||||||
memberId: orgMember?.id,
|
memberId: orgMember?.id,
|
||||||
role_id: orgMember?.role_id,
|
role_id: orgMember?.role_id,
|
||||||
landingpage: orgMember?.organization?.landingpage,
|
landingpage: orgMember?.organization?.landingpage,
|
||||||
|
is_restricted: orgMember?.organization?.is_restricted,
|
||||||
customization: orgMember?.organization?.customization,
|
customization: orgMember?.organization?.customization,
|
||||||
organization_plan: orgMember?.organization?.organization_plan
|
organization_plan: orgMember?.organization?.organization_plan
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -302,7 +302,7 @@
|
|||||||
<UpgradeModal />
|
<UpgradeModal />
|
||||||
<Snackbar />
|
<Snackbar />
|
||||||
|
|
||||||
{#if data.org?.is_restricted}
|
{#if data.org?.is_restricted || $currentOrg.is_restricted}
|
||||||
<Restricted />
|
<Restricted />
|
||||||
{:else if data.skipAuth}
|
{:else if data.skipAuth}
|
||||||
<PlayQuiz />
|
<PlayQuiz />
|
||||||
|
|||||||
Reference in New Issue
Block a user