FeatureFuel
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

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests