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

How do 'hasPermission' and 'hasOnlyRoles' work? #241

Open
craigchandler opened this issue Sep 3, 2024 · 1 comment
Open

How do 'hasPermission' and 'hasOnlyRoles' work? #241

craigchandler opened this issue Sep 3, 2024 · 1 comment

Comments

@craigchandler
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Feature request
[X ] Documentation issue or request

Current behavior

How do 'hasPermission' and 'hasOnlyRoles' work?

I do a this._rolesService.addRoleWithPermissions('ADMIN', ['admin' ]);

both hasPermission('admin') and hasOnlyRoles('ADMIN') return false

@craigchandler
Copy link
Author

discovered it, mixed promises and observables

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