You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// EnforceWithMatcher 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 "".
bool result = EnforceExWithMatcher(matcher, evalator, explain);
539
+
return result;
536
540
}
537
541
538
542
// EnforceWithMatcher 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 "".
bool result = EnforceExWithMatcher(matcher, params, explain);
546
+
return result;
547
+
}
548
+
549
+
// EnforceWithMatcher 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 "".
bool result = m_enforce(matcher, explains, m_evalator);
613
+
bool result = m_enforce(matcher, explain, m_evalator);
569
614
570
615
return result;
571
616
}
572
617
573
-
// EnforceWithMatcher 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 "".
Copy file name to clipboardExpand all lines: include/casbin/enforcer.h
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -176,10 +176,21 @@ class Enforcer : public IEnforcer {
176
176
// EnforceWithMatcher 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
0 commit comments