mikespook / gorbac

goRBAC provides a lightweight role-based access control (RBAC) implementation in Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add more permissions to a role?

xpbliss opened this issue · comments

How to add more permissions to a role?

commented

Role is an interface which has a method named AddPermission. You can call this method multi times to set varies Permission (s).

You can see how it works in the test case of StdRole.AddPermission.