Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Pass permissions to client component #1889

Open
lucaheft opened this issue Nov 26, 2024 · 0 comments
Open

[Feature Request] Pass permissions to client component #1889

lucaheft opened this issue Nov 26, 2024 · 0 comments

Comments

@lucaheft
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant