RemovePolicies removes authorization rules from the current policy.
(rules [][]string)
| 463 | |
| 464 | // RemovePolicies removes authorization rules from the current policy. |
| 465 | func (e *SyncedEnforcer) RemovePolicies(rules [][]string) (bool, error) { |
| 466 | e.m.Lock() |
| 467 | defer e.m.Unlock() |
| 468 | return e.Enforcer.RemovePolicies(rules) |
| 469 | } |
| 470 | |
| 471 | // RemoveFilteredPolicy removes an authorization rule from the current policy, field filters can be specified. |
| 472 | func (e *SyncedEnforcer) RemoveFilteredPolicy(fieldIndex int, fieldValues ...string) (bool, error) { |
nothing calls this directly
no test coverage detected