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
The new evaluator will still attempt to evaluate the second expression even if the first express was truthy. This is an issue because in same cause a prop in the input object is not passed to enforce sometimes.
In version 5.32.0 and earlier the matcher will short-circuit once it finds a match.
The text was updated successfully, but these errors were encountered:
@tomfriedhof this is because we switched the evaluator from the official expression-eval v5.0.0 to our own fork @casbin/expression-eval v5.2.0 (which is yet the same code as the official package v5.0.1, we only changed the CI code in next versions) in the PR: #489 .
So I suspect the changes happen between v5.0.0 and v5.0.1 in the official package.
@tomfriedhof can you test it by switching to v5.0.1 to see if it is also wrong?
If you have a matcher that has multiple conditions such as the one below:
The new evaluator will still attempt to evaluate the second expression even if the first express was truthy. This is an issue because in same cause a prop in the
input
object is not passed toenforce
sometimes.In version 5.32.0 and earlier the matcher will short-circuit once it finds a match.
The text was updated successfully, but these errors were encountered: