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

Method SelfAddPolicy

management_api.go:487–489  ·  view source on GitHub ↗
(sec string, ptype string, rule []string)

Source from the content-addressed store, hash-verified

485}
486
487func (e *Enforcer) SelfAddPolicy(sec string, ptype string, rule []string) (bool, error) {
488 return e.addPolicyWithoutNotify(sec, ptype, rule)
489}
490
491func (e *Enforcer) SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error) {
492 return e.addPoliciesWithoutNotify(sec, ptype, rules, false)

Callers 1

TestSelfModifyFunction · 0.95

Calls 1

Tested by 1

TestSelfModifyFunction · 0.76