-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Question] Simple RBAC system with route guard by user's role #52
Comments
Hello @fasenderos you got something about that? |
Hi @fasenderos, same as @nunnally ! |
Hello @fasenderos you could follow the official RBAC simple example in the nest official docs. https://docs.nestjs.com/security/authorization I think is a great fit for the use case you are asking 🤓 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to define a simple RBAC system ('USER', 'EDITOR', 'ADMIN') and guarding the routes by user's role without having to define all permissions? Something like:
I see that in the original interface can be defined the
role
property that sounds good for my case, but it seems that yourrole.interface.ts
accept onlyresource
,action
andpossession
. Or I'm missing something?Thanks in advance
The text was updated successfully, but these errors were encountered: