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

Global guard for all routes #188

Open
cre8 opened this issue Jun 12, 2024 · 2 comments
Open

Global guard for all routes #188

cre8 opened this issue Jun 12, 2024 · 2 comments
Labels
Type: Enhancement New feature or request
Milestone

Comments

@cre8
Copy link

cre8 commented Jun 12, 2024

is it possible to set a role check that is activated for all routes? Like all routes need the role admin since the whole web service is only for admins

@ferrerojosh
Copy link
Owner

Hmm this is something that can be done. I can add a constructor parameter to RoleGuard for global guard usage.

@ferrerojosh ferrerojosh added the Type: Enhancement New feature or request label Jun 14, 2024
@cre8
Copy link
Author

cre8 commented Jun 14, 2024

This would be great.

But will public decorators still work then? I am not familiar with decorators if they are executed in a sequence or not

@ferrerojosh ferrerojosh added this to the 2.0 milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants