by ipodopt · 5y ago · 0 comments
Probably off the mark here but...
View -> Function -> Table (Atomic Permissions) - On Miss -> Rest Call to SpiceDB
RLS:
CREATE POLICY "Resources are updateble by certain groups of users." ON public.resources for UPDATE USING ( EXISTS ( SELECT FROM atomic_permissions_view WHERE (user_id = auth.uid()) and (action_enum = 'modify') and (resource_id = id) ) );
Where resources inherit from resources tables..
No comments yet.