Added category update
This commit is contained in:
@@ -440,6 +440,20 @@ create policy "Allow anonymous access to published event categories" on public.c
|
||||
)
|
||||
);
|
||||
|
||||
create policy "Allow GMs to update their events categories"
|
||||
on public.calendar_event_categories
|
||||
for update
|
||||
using (
|
||||
exists (
|
||||
select 1
|
||||
from public.calendars c
|
||||
join public.worlds w on w.id = c.world_id
|
||||
where
|
||||
c.id = calendar_event_categories.calendar_id
|
||||
and w.gm_id = auth.uid()
|
||||
)
|
||||
);
|
||||
|
||||
-- Send "previous data" on change
|
||||
alter table public.users replica identity full;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user