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

Method UpdatePolicy

enforcer_interface.go:145–145  ·  view source on GitHub ↗
(oldPolicy []string, newPolicy []string)

Source from the content-addressed store, hash-verified

143 AddFunction(name string, function govaluate.ExpressionFunction)
144
145 UpdatePolicy(oldPolicy []string, newPolicy []string) (bool, error)
146 UpdatePolicies(oldPolicies [][]string, newPolicies [][]string) (bool, error)
147 UpdateFilteredPolicies(newPolicies [][]string, fieldIndex int, fieldValues ...string) (bool, error)
148

Callers 4

UpdatePolicySelfMethod · 0.65
UpdatePolicyMethod · 0.65

Implementers 1

Enforcerenforcer.go

Calls

no outgoing calls

Tested by

no test coverage detected