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

Method RemovePolicies

enforcer_synced.go:465–469  ·  view source on GitHub ↗

RemovePolicies removes authorization rules from the current policy.

(rules [][]string)

Source from the content-addressed store, hash-verified

463
464// RemovePolicies removes authorization rules from the current policy.
465func (e *SyncedEnforcer) RemovePolicies(rules [][]string) (bool, error) {
466 e.m.Lock()
467 defer e.m.Unlock()
468 return e.Enforcer.RemovePolicies(rules)
469}
470
471// RemoveFilteredPolicy removes an authorization rule from the current policy, field filters can be specified.
472func (e *SyncedEnforcer) RemoveFilteredPolicy(fieldIndex int, fieldValues ...string) (bool, error) {

Callers

nothing calls this directly

Calls 1

RemovePoliciesMethod · 0.65

Tested by

no test coverage detected