-
Notifications
You must be signed in to change notification settings - Fork 26
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
STCOR-910 provide IfAnyPermission, stripes.ifAnyPerm #1560
Conversation
`<IfPermission>` and `stripes.ifPerm()` return `true` when the user has ALL the given permissions. `<IfAnyPermission>` and `stripes.ifAnyPerm()` return `true` when the user has ANY of the given permission. Refs STCOR-910
Bigtest Unit Test Results192 tests ±0 187 ✅ ±0 6s ⏱️ ±0s Results for commit aed7bbc. ± Comparison against base commit 0d65a69. This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @zburke!
`<IfPermission>` and `stripes.ifPerm()` return `true` when the user has ALL the given permissions. `<IfAnyPermission>` and `stripes.ifAnyPerm()` return `true` when the user has ANY of the given permissions. Refs STCOR-910 (cherry picked from commit 921f0ab)
<IfPermission>
andstripes.ifPerm()
returntrue
when the user has ALL the given permissions.<IfAnyPermission>
andstripes.ifAnyPerm()
returntrue
when the user has ANY of the given permissions.Refs STCOR-910