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

Method SelfAddPolicy

enforcer_interface.go:155–155  ·  view source on GitHub ↗

* Management API with autoNotifyWatcher disabled */

(sec string, ptype string, rule []string)

Source from the content-addressed store, hash-verified

153
154 /* Management API with autoNotifyWatcher disabled */
155 SelfAddPolicy(sec string, ptype string, rule []string) (bool, error)
156 SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error)
157 SelfAddPoliciesEx(sec string, ptype string, rules [][]string) (bool, error)
158 SelfRemovePolicy(sec string, ptype string, rule []string) (bool, error)

Callers 1

SelfAddPolicyMethod · 0.65

Implementers 1

Enforcerenforcer.go

Calls

no outgoing calls

Tested by

no test coverage detected