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

Method RemoveFilteredPolicy

enforcer_synced.go:472–476  ·  view source on GitHub ↗

RemoveFilteredPolicy removes an authorization rule from the current policy, field filters can be specified.

(fieldIndex int, fieldValues ...string)

Source from the content-addressed store, hash-verified

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) {
473 e.m.Lock()
474 defer e.m.Unlock()
475 return e.Enforcer.RemoveFilteredPolicy(fieldIndex, fieldValues...)
476}
477
478// RemoveNamedPolicy removes an authorization rule from the current named policy.
479func (e *SyncedEnforcer) RemoveNamedPolicy(ptype string, params ...interface{}) (bool, error) {

Callers

nothing calls this directly

Calls 1

RemoveFilteredPolicyMethod · 0.65

Tested by

no test coverage detected