-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change in expression parsing between versions 1.5.0 and 2.5.3 #353
Comments
Here are two questions:
var authorizationAttributes = new Dictionary<string, Dictionary<string, string>>
{
["CompanyData"] = new Dictionary<string, string>
{
["CompanyIsActive"] = "True", ["BusinessRole"] = "Role1"
}
};
result = _enforcer.Enforce(authorizationAttributes, role, path, method); |
Thanks, I will try to implement it |
@vova-lantsov-dev Hi, I have tried to address this issue with pull request #355. It includes test cases for the scenarios you mentioned and the tests are now passing successfully. |
🎉 This issue has been resolved in version 2.7.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
I followed the migration guide but there are no documented details regarding the changes in expression parsing logic. The code that used to work on version 1.5.0 - doesn't work anymore on 2.5.3
Exception:
Model:
Policies:
How I'm enforcing on version 1.5.0:
The same logic doesn't work on version 2.5.3
Can you suggest, please, what I am missing or what to change?
The text was updated successfully, but these errors were encountered: