RemovePolicy removes an authorization rule from the current policy.
(params ...interface{})
| 418 | |
| 419 | // RemovePolicy removes an authorization rule from the current policy. |
| 420 | func (e *SyncedEnforcer) RemovePolicy(params ...interface{}) (bool, error) { |
| 421 | e.m.Lock() |
| 422 | defer e.m.Unlock() |
| 423 | return e.Enforcer.RemovePolicy(params...) |
| 424 | } |
| 425 | |
| 426 | // UpdatePolicy updates an authorization rule from the current policy. |
| 427 | func (e *SyncedEnforcer) UpdatePolicy(oldPolicy []string, newPolicy []string) (bool, error) { |
nothing calls this directly
no test coverage detected