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

Method SelfRemovePolicy

enforcer_synced.go:658–662  ·  view source on GitHub ↗
(sec string, ptype string, rule []string)

Source from the content-addressed store, hash-verified

656}
657
658func (e *SyncedEnforcer) SelfRemovePolicy(sec string, ptype string, rule []string) (bool, error) {
659 e.m.Lock()
660 defer e.m.Unlock()
661 return e.Enforcer.SelfRemovePolicy(sec, ptype, rule)
662}
663
664func (e *SyncedEnforcer) SelfRemovePolicies(sec string, ptype string, rules [][]string) (bool, error) {
665 e.m.Lock()

Callers 1

Calls 1

SelfRemovePolicyMethod · 0.65

Tested by 1