mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-08-28 03:24:37 -05:00
Allow hack tags to be reordered
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
create policy "Owners can update tags on own hacks."
|
||||
on "public"."hack_tags"
|
||||
as PERMISSIVE
|
||||
for UPDATE
|
||||
to public
|
||||
using (
|
||||
(is_admin() OR (EXISTS ( SELECT 1
|
||||
FROM hacks h
|
||||
WHERE ((h.slug = hack_tags.hack_slug) AND (h.created_by = auth.uid())))))
|
||||
);
|
||||
Reference in New Issue
Block a user