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

Method invalidateMatcherMap

enforcer.go:678–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676}
677
678func (e *Enforcer) invalidateMatcherMap() {
679 e.matcherMap = sync.Map{}
680}
681
682// enforce use a custom matcher to decides whether a "subject" can access a "object" with the operation "action", input parameters are usually: (matcher, sub, obj, act), use model matcher by default when matcher is "".
683func (e *Enforcer) enforce(matcher string, explains *[]string, rvals ...interface{}) (ok bool, err error) { //nolint:funlen,cyclop,gocyclo // TODO: reduce function complexity

Callers 10

loadFilteredPolicyCtxMethod · 0.95
SetRoleManagerMethod · 0.95
SetNamedRoleManagerMethod · 0.95
ClearPolicyMethod · 0.95
applyModifiedModelMethod · 0.95
loadFilteredPolicyMethod · 0.95
BuildRoleLinksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected