MCPcopy Index your code
hub / github.com/apache/casbin / SelfUpdatePolicy

Method SelfUpdatePolicy

management_api.go:511–513  ·  view source on GitHub ↗
(sec string, ptype string, oldRule, newRule []string)

Source from the content-addressed store, hash-verified

509}
510
511func (e *Enforcer) SelfUpdatePolicy(sec string, ptype string, oldRule, newRule []string) (bool, error) {
512 return e.updatePolicyWithoutNotify(sec, ptype, oldRule, newRule)
513}
514
515func (e *Enforcer) SelfUpdatePolicies(sec string, ptype string, oldRules, newRules [][]string) (bool, error) {
516 return e.updatePoliciesWithoutNotify(sec, ptype, oldRules, newRules)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected