RemoveFilteredNamedGroupingPolicy removes a role inheritance rule from the current named policy, field filters can be specified.
(ptype string, fieldIndex int, fieldValues ...string)
| 476 | |
| 477 | // RemoveFilteredNamedGroupingPolicy removes a role inheritance rule from the current named policy, field filters can be specified. |
| 478 | func (e *Enforcer) RemoveFilteredNamedGroupingPolicy(ptype string, fieldIndex int, fieldValues ...string) (bool, error) { |
| 479 | return e.removeFilteredPolicy("g", ptype, fieldIndex, fieldValues) |
| 480 | } |
| 481 | |
| 482 | // AddFunction adds a customized function. |
| 483 | func (e *Enforcer) AddFunction(name string, function govaluate.ExpressionFunction) { |