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

Method UpdateNamedPolicy

management_api.go:294–296  ·  view source on GitHub ↗
(ptype string, p1 []string, p2 []string)

Source from the content-addressed store, hash-verified

292}
293
294func (e *Enforcer) UpdateNamedPolicy(ptype string, p1 []string, p2 []string) (bool, error) {
295 return e.updatePolicy("p", ptype, p1, p2)
296}
297
298// UpdatePolicies updates authorization rules from the current policies.
299func (e *Enforcer) UpdatePolicies(oldPolices [][]string, newPolicies [][]string) (bool, error) {

Callers 1

UpdatePolicyMethod · 0.95

Calls 1

updatePolicyMethod · 0.95

Tested by

no test coverage detected