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

Method SelfRemovePolicies

management_api.go:503–505  ·  view source on GitHub ↗
(sec string, ptype string, rules [][]string)

Source from the content-addressed store, hash-verified

501}
502
503func (e *Enforcer) SelfRemovePolicies(sec string, ptype string, rules [][]string) (bool, error) {
504 return e.removePoliciesWithoutNotify(sec, ptype, rules)
505}
506
507func (e *Enforcer) SelfRemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) (bool, error) {
508 return e.removeFilteredPolicyWithoutNotify(sec, ptype, fieldIndex, fieldValues)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected