-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"ABAC with policy rule" doesn't work #145
Comments
@shy1st please take a look. |
@shy1st I tried your example and everything turned out in a separate file. But as soon as I returned to Spring Boot it stopped working. |
@shy1st I think I found what the problem is. The entity I am using has lazy initialized fields (Hibernate). And apparently because of them this problem occurs. I created another entity with only one Name field in the Srpting Boot project I wrote about above and it worked. But it's very sad how to do without lazy fields. |
You can try to wake up this fields before using enforcer method.Maybe you can call one method of the field(try to use the field) to initial the field.Do you think it's alright? @uPagge |
@uPagge We use janino instead of beanShell to implement eval function of BuiltInFunctions in jcasbin v1.7..It's possible that your problem has solved.Please try again and let us know if you still have problems. |
@uPagge plz check if it's fixed in latest v1.7.1: https://github.com/casbin/jcasbin/releases/tag/v1.7.1 |
Closed as resolved. |
I have a policy like this, in the editor it works
But in java it refuses to work
What could be the problem?
The text was updated successfully, but these errors were encountered: