BuildIncrementalConditionalRoleLinks provides incremental build the role inheritance relations with conditions.
(op model.PolicyOp, ptype string, rules [][]string)
| 661 | |
| 662 | // BuildIncrementalConditionalRoleLinks provides incremental build the role inheritance relations with conditions. |
| 663 | func (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. |
| 669 | func NewEnforceContext(suffix string) EnforceContext { |
no test coverage detected