Releases: euroteltr/rbac
Releases · euroteltr/rbac
Return previous perm if exists while registering
added ActionsStrSlice
added ActionsStrSlice
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.
Deep parent role check
Deep parent role check is added.
Thanks to @brendesp
Patches
Added AnyGrantedStr,AllGrantedStr
Added AnyGrantedStr,AllGrantedStr
Patch release
Added GetAllPermissions()
for listing all available permissions and some more tests.
Refactored release
- Replaced file operations with
io.Writer
and `io.Reader' - Added an example for granular permissions to
README.md
Stable release
- Added option to set logger (
rbac.SetLogger()
)
First release
- RBAC
- Role parent inheritance
- Role persistance(load/save)
- Echo framework middleware