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

Roles Guard should merge "class" and "handler" roles ! #127

Closed
medfata opened this issue May 4, 2022 · 1 comment
Closed

Roles Guard should merge "class" and "handler" roles ! #127

medfata opened this issue May 4, 2022 · 1 comment
Assignees
Labels
Type: Enhancement New feature or request

Comments

@medfata
Copy link

medfata commented May 4, 2022

i think it would be great if we can just decorat the controller class with the roles decorator so that they apply to each method in it instead of repeating the decorator for each handler in the controller:
by using nestjs reflector.getAllAndMerge instead of reflector.getAllAndOverride

@ferrerojosh
Copy link
Owner

This should be an option in the configuration. To avoid breaking other existing code.

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