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

Will users without "read" permission see items in the listing type? #5

Closed
hongkongkiwi opened this issue Dec 7, 2024 · 2 comments
Closed

Comments

@hongkongkiwi
Copy link

How does the list type work with permissions? Does it currently exclude items from the list if user doesn't have permission to read them?

I guess this is kind of related to zenstackhq/zenstack#982 but seems not exactly since we only want to see some items in the list if user has permissions to "read".

@kirankunigiri
Copy link
Owner

This project uses zenstack's tanstack-query plugin under the hood, so I believe it should respect all access policies and other zenstack features by default. For the list, it specifically is using the useFindMany hook that zenstack creates, check the docs I linked for more details. I haven't tested the list component with permissions myself though, so let me know if it works for you.

@hongkongkiwi
Copy link
Author

Thanks, makes sense.

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

2 participants