Skip to content

Releases: euroteltr/rbac

Return previous perm if exists while registering

19 Jul 16:21
Compare
Choose a tag to compare

Return previous perm if exists while registering

added ActionsStrSlice

10 Jul 14:31
Compare
Choose a tag to compare

added ActionsStrSlice

Added inheritance

30 Mar 11:35
3b06283
Compare
Choose a tag to compare

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

28 Feb 07:16
52b758d
Compare
Choose a tag to compare

Deep parent role check is added.

Thanks to @brendesp

Patches

15 Jan 16:42
Compare
Choose a tag to compare
  • Patch for nil perm.
  • Patch for misleading error log message

Added AnyGrantedStr,AllGrantedStr

04 Dec 11:00
Compare
Choose a tag to compare

Added AnyGrantedStr,AllGrantedStr

Patch release

03 Oct 08:09
Compare
Choose a tag to compare

Added GetAllPermissions() for listing all available permissions and some more tests.

Refactored release

03 Aug 04:36
Compare
Choose a tag to compare
  • Replaced file operations with io.Writer and `io.Reader'
  • Added an example for granular permissions to README.md

Stable release

01 Aug 18:34
Compare
Choose a tag to compare
  • Added option to set logger (rbac.SetLogger())

First release

01 Aug 14:05
Compare
Choose a tag to compare
  • RBAC
  • Role parent inheritance
  • Role persistance(load/save)
  • Echo framework middleware