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

Method SelfUpdatePolicy

enforcer_synced.go:676–680  ·  view source on GitHub ↗
(sec string, ptype string, oldRule, newRule []string)

Source from the content-addressed store, hash-verified

674}
675
676func (e *SyncedEnforcer) SelfUpdatePolicy(sec string, ptype string, oldRule, newRule []string) (bool, error) {
677 e.m.Lock()
678 defer e.m.Unlock()
679 return e.Enforcer.SelfUpdatePolicy(sec, ptype, oldRule, newRule)
680}
681
682func (e *SyncedEnforcer) SelfUpdatePolicies(sec string, ptype string, oldRules, newRules [][]string) (bool, error) {
683 e.m.Lock()

Callers 1

Calls 1

SelfUpdatePolicyMethod · 0.65

Tested by 1