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

Method SelfAddPoliciesEx

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

Source from the content-addressed store, hash-verified

493}
494
495func (e *Enforcer) SelfAddPoliciesEx(sec string, ptype string, rules [][]string) (bool, error) {
496 return e.addPoliciesWithoutNotify(sec, ptype, rules, true)
497}
498
499func (e *Enforcer) SelfRemovePolicy(sec string, ptype string, rule []string) (bool, error) {
500 return e.removePolicyWithoutNotify(sec, ptype, rule)

Callers 1

TestModifyPolicyAPIFunction · 0.95

Calls 1

Tested by 1

TestModifyPolicyAPIFunction · 0.76