GetUsersForRole gets the users that has a role.
(name string, domain ...string)
| 23 | |
| 24 | // GetUsersForRole gets the users that has a role. |
| 25 | func (e *SyncedEnforcer) GetUsersForRole(name string, domain ...string) ([]string, error) { |
| 26 | e.m.RLock() |
| 27 | defer e.m.RUnlock() |
| 28 | return e.Enforcer.GetUsersForRole(name, domain...) |
| 29 | } |
| 30 | |
| 31 | // HasRoleForUser determines whether a user has a role. |
| 32 | func (e *SyncedEnforcer) HasRoleForUser(name string, role string, domain ...string) (bool, error) { |
nothing calls this directly
no test coverage detected