fix: auth issue due to org insert rls policy
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
<div class="flex flex-col items-center space-y-6 text-center">
|
<div class="flex flex-col items-center space-y-6 text-center">
|
||||||
<img src="/verify-email.svg" alt="email verification" />
|
<img src="/verify-email.svg" alt="email verification" />
|
||||||
<p class="font-bold text-xl">{$t('verify_email_modal.heading')}</p>
|
<p class="font-bold text-xl">{$t('verify_email_modal.heading')}</p>
|
||||||
<p class="text-sm w-[70%] text-gray-700">
|
<p class="text-sm w-[70%] text-gray-700 dark:text-gray-200">
|
||||||
{$t('verify_email_modal.sent_verification')}
|
{$t('verify_email_modal.sent_verification')}
|
||||||
{$profile.email}
|
{$profile.email}
|
||||||
{$t('verify_email_modal.to_confirm')}
|
{$t('verify_email_modal.to_confirm')}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
drop policy "User must be an admin to INSERT" on "public"."organization";
|
||||||
|
|
||||||
|
create policy "Enable insert for authenticated users only"
|
||||||
|
on "public"."organization"
|
||||||
|
as permissive
|
||||||
|
for insert
|
||||||
|
to authenticated
|
||||||
|
with check (true);
|
||||||
Reference in New Issue
Block a user