MCPcopy Index your code
hub / github.com/apache/casbin / UpdateGroupingPolicy

Method UpdateGroupingPolicy

management_api.go:460–462  ·  view source on GitHub ↗
(oldRule []string, newRule []string)

Source from the content-addressed store, hash-verified

458}
459
460func (e *Enforcer) UpdateGroupingPolicy(oldRule []string, newRule []string) (bool, error) {
461 return e.UpdateNamedGroupingPolicy("g", oldRule, newRule)
462}
463
464// UpdateGroupingPolicies updates authorization rules from the current policies.
465func (e *Enforcer) UpdateGroupingPolicies(oldRules [][]string, newRules [][]string) (bool, error) {

Callers 1

Calls 1

Tested by 1