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

Method RemovePolicy

enforcer_synced.go:420–424  ·  view source on GitHub ↗

RemovePolicy removes an authorization rule from the current policy.

(params ...interface{})

Source from the content-addressed store, hash-verified

418
419// RemovePolicy removes an authorization rule from the current policy.
420func (e *SyncedEnforcer) RemovePolicy(params ...interface{}) (bool, error) {
421 e.m.Lock()
422 defer e.m.Unlock()
423 return e.Enforcer.RemovePolicy(params...)
424}
425
426// UpdatePolicy updates an authorization rule from the current policy.
427func (e *SyncedEnforcer) UpdatePolicy(oldPolicy []string, newPolicy []string) (bool, error) {

Callers

nothing calls this directly

Calls 1

RemovePolicyMethod · 0.65

Tested by

no test coverage detected