MCPcopy
hub / github.com/apache/casbin / RemoveFilteredNamedGroupingPolicy

Method RemoveFilteredNamedGroupingPolicy

management_api.go:478–480  ·  view source on GitHub ↗

RemoveFilteredNamedGroupingPolicy removes a role inheritance rule from the current named policy, field filters can be specified.

(ptype string, fieldIndex int, fieldValues ...string)

Source from the content-addressed store, hash-verified

476
477// RemoveFilteredNamedGroupingPolicy removes a role inheritance rule from the current named policy, field filters can be specified.
478func (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.
483func (e *Enforcer) AddFunction(name string, function govaluate.ExpressionFunction) {

Callers 2

TestMockAdapterErrorsFunction · 0.95

Calls 1

removeFilteredPolicyMethod · 0.95

Tested by 1

TestMockAdapterErrorsFunction · 0.76