GetUsersForRoleInDomain gets the users that has a role inside a domain. Add by Gordon.
(name string, domain string)
| 22 | |
| 23 | // GetUsersForRoleInDomain gets the users that has a role inside a domain. Add by Gordon. |
| 24 | func (e *Enforcer) GetUsersForRoleInDomain(name string, domain string) []string { |
| 25 | if e.GetRoleManager() == nil { |
| 26 | return nil |
| 27 | } |
| 28 | res, _ := e.GetRoleManager().GetUsers(name, domain) |
| 29 | return res |
| 30 | } |
| 31 | |
| 32 | // GetRolesForUserInDomain gets the roles that a user has inside a domain. |
| 33 | func (e *Enforcer) GetRolesForUserInDomain(name string, domain string) []string { |
nothing calls this directly
no test coverage detected