RBAC - Simple, concurrent Role Based Access Control(GO)
Return previous perm if exists while registering
added ActionsStrSlice
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.
Deep parent role check is added.
Thanks to @brendesp
nil
perm.error
log messageAdded AnyGrantedStr,AllGrantedStr
Added GetAllPermissions()
for listing all available permissions and some more tests.
io.Writer
and `io.Reader'README.md
rbac.SetLogger()
)