zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Feature Request] Pass permissions to client component

Open lucaheft opened this issue 1 year ago • 0 comments

Currently we can use the RPC API Handler together with the check API to check for permissions in client components. However this introduces additional server requests.

It would be nice to have some kind of system to pass permissions from a server component to a client component.

For reference: I've previously had a look at CASL, which has the concept of rule packing to pack rules in a server component, pass them to a client component and then unpack them for consumption.

lucaheft avatar Nov 26 '24 08:11 lucaheft