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">
|
||||
<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">
|
||||
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>
|
||||
<PrimaryButton
|
||||
variant={VARIANTS.CONTAINED_DARK}
|
||||
|
||||
@@ -79,6 +79,7 @@ export async function getOrganizations(userId: string, isOrgSite?: boolean, orgS
|
||||
avatar_url,
|
||||
landingpage,
|
||||
customization,
|
||||
is_restricted,
|
||||
theme,
|
||||
created_at,
|
||||
organization_plan(
|
||||
@@ -115,6 +116,7 @@ export async function getOrganizations(userId: string, isOrgSite?: boolean, orgS
|
||||
memberId: orgMember?.id,
|
||||
role_id: orgMember?.role_id,
|
||||
landingpage: orgMember?.organization?.landingpage,
|
||||
is_restricted: orgMember?.organization?.is_restricted,
|
||||
customization: orgMember?.organization?.customization,
|
||||
organization_plan: orgMember?.organization?.organization_plan
|
||||
});
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
<UpgradeModal />
|
||||
<Snackbar />
|
||||
|
||||
{#if data.org?.is_restricted}
|
||||
{#if data.org?.is_restricted || $currentOrg.is_restricted}
|
||||
<Restricted />
|
||||
{:else if data.skipAuth}
|
||||
<PlayQuiz />
|
||||
|
||||
Reference in New Issue
Block a user