GetPermissionsForUser gets permissions for a user or role.
(user string, domain ...string)
| 125 | |
| 126 | // GetPermissionsForUser gets permissions for a user or role. |
| 127 | func (e *SyncedEnforcer) GetPermissionsForUser(user string, domain ...string) ([][]string, error) { |
| 128 | e.m.RLock() |
| 129 | defer e.m.RUnlock() |
| 130 | return e.Enforcer.GetPermissionsForUser(user, domain...) |
| 131 | } |
| 132 | |
| 133 | // GetNamedPermissionsForUser gets permissions for a user or role by named policy. |
| 134 | func (e *SyncedEnforcer) GetNamedPermissionsForUser(ptype string, user string, domain ...string) ([][]string, error) { |
nothing calls this directly
no test coverage detected