Changelog History
-
v1.0.9 Changes
July 19, 2019Return previous perm if exists while registering
-
v1.0.8 Changes
July 10, 2019โ added ActionsStrSlice
-
v1.0.7 Changes
March 30, 2019โ 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.
-
v1.0.6 Changes
February 28, 2019Deep parent role check is added.
Thanks to @brendesp
-
v1.0.5 Changes
January 15, 2019- Patch for
nil
perm. - ๐ฒ Patch for misleading
error
log message
- Patch for
-
v1.0.4 Changes
December 04, 2018โ Added AnyGrantedStr,AllGrantedStr
-
v1.0.3 Changes
October 03, 2018โ Added
GetAllPermissions()
for listing all available permissions and some more tests. -
v1.0.2 Changes
August 03, 2018- Replaced file operations with
io.Writer
and `io.Reader' - โ Added an example for granular permissions to
README.md
- Replaced file operations with