()
| 676 | } |
| 677 | |
| 678 | func (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 "". |
| 683 | func (e *Enforcer) enforce(matcher string, explains *[]string, rvals ...interface{}) (ok bool, err error) { //nolint:funlen,cyclop,gocyclo // TODO: reduce function complexity |
no outgoing calls
no test coverage detected