forked from stffn/declarative_authorization
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add and test has_any_role_with_hierarchy?
Allows passing an array of roles and returning true/executing a block if ANY of the supplied roles are present rather than ALL
- Loading branch information
1 parent
2a465d3
commit dbbe783
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters