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

Method BuildIncrementalConditionalRoleLinks

enforcer.go:663–666  ·  view source on GitHub ↗

BuildIncrementalConditionalRoleLinks provides incremental build the role inheritance relations with conditions.

(op model.PolicyOp, ptype string, rules [][]string)

Source from the content-addressed store, hash-verified

661
662// BuildIncrementalConditionalRoleLinks provides incremental build the role inheritance relations with conditions.
663func (e *Enforcer) BuildIncrementalConditionalRoleLinks(op model.PolicyOp, ptype string, rules [][]string) error {
664 e.invalidateMatcherMap()
665 return e.model.BuildIncrementalConditionalRoleLinks(e.condRmMap, op, "g", ptype, rules)
666}
667
668// NewEnforceContext Create a default structure based on the suffix.
669func NewEnforceContext(suffix string) EnforceContext {

Callers 2

Calls 1

invalidateMatcherMapMethod · 0.95

Tested by

no test coverage detected