Added inheritance
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.