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

Method SelfAddPolicies

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

Source from the content-addressed store, hash-verified

489}
490
491func (e *Enforcer) SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error) {
492 return e.addPoliciesWithoutNotify(sec, ptype, rules, false)
493}
494
495func (e *Enforcer) SelfAddPoliciesEx(sec string, ptype string, rules [][]string) (bool, error) {
496 return e.addPoliciesWithoutNotify(sec, ptype, rules, true)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected