Skip to content

Added inheritance

Compare
Choose a tag to compare
@derkan derkan released this 30 Mar 11:35
· 2 commits to master since this release
3b06283

Added inheritance versions(..Inherited) of the following functions.
Non-inheritance versions check current role and direct parents. Inherited versions checks all ancestors.

IsGranted -> IsGrantInherited
IsGrantedStr -> IsGrantInheritedStr
AnyGranted -> AnyGrantInherited
AnyGrantedStr -> AnyGrantInheritedStr
AllGrantedStr -> AllGrantInheritedStr
Role.isGranted -> Role.isGrantInherited
Role.isGrantedStr -> Role.isGrantInheritedStr

Added Role.HasAncestor to do a recursive ancestor check.

Thanks to @brendesp for these contributions.