RemovePolicy removes an authorization rule from the current policy.
(params ...interface{})
| 283 | |
| 284 | // RemovePolicy removes an authorization rule from the current policy. |
| 285 | func (e *Enforcer) RemovePolicy(params ...interface{}) (bool, error) { |
| 286 | return e.RemoveNamedPolicy("p", params...) |
| 287 | } |
| 288 | |
| 289 | // UpdatePolicy updates an authorization rule from the current policy. |
| 290 | func (e *Enforcer) UpdatePolicy(oldPolicy []string, newPolicy []string) (bool, error) { |