4
Check Permissions before executing
Source: supabase/supabase#27905 · opened by @ThatGuySam
I have a editable header that all users can view but only some can edit.
Here's a visual example from Notion
I want to be able to detect if an operation, such as update, can be done before I try it so that I don't have to duplicate the logic of my RLS policies on the client.
This way I can disable editing completely instead on some users getting and error after they try to edit.
I could just try the operation but then I might be create extra data or updates that have no other purpose.
I haven't been able to find any discussions or issue on this on google or the supabase-js repo.
Here's an example of what it could look like
Here's a visual example from Notion
I want to be able to detect if an operation, such as update, can be done before I try it so that I don't have to duplicate the logic of my RLS policies on the client.
This way I can disable editing completely instead on some users getting and error after they try to edit.
I could just try the operation but then I might be create extra data or updates that have no other purpose.
I haven't been able to find any discussions or issue on this on google or the supabase-js repo.
Here's an example of what it could look like
No pledges yet. Be the first to back this.
Comments
Similar requests
Separate Point Queries and Listing for Permissions
1 vote · 0 comments
Supabase urgently needs per project permissions
11 votes · 0 comments
Enhancing Developer Experience with Client-side Raw SQL Queries
3 votes · 0 comments
Deploy Functions with NO TYPE CHECK Flag on default
4 votes · 0 comments
Feature Request: Add a “Billing” Role to Team Member Permissions
1 vote · 0 comments
No comments yet.