SetNamedRoleManager sets the role manager for the named policy.
(ptype string, rm rbac.RoleManager)
| 283 | |
| 284 | // SetNamedRoleManager sets the role manager for the named policy. |
| 285 | func (e *Enforcer) SetNamedRoleManager(ptype string, rm rbac.RoleManager) { |
| 286 | e.invalidateMatcherMap() |
| 287 | e.rmMap[ptype] = rm |
| 288 | } |
| 289 | |
| 290 | // SetEffector sets the current effector. |
| 291 | func (e *Enforcer) SetEffector(eft effector.Effector) { |
nothing calls this directly
no test coverage detected