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
Not able to sync user access policies into the enforcer #2712
Comments
Any update on this? |
@hsluoyz Can you help resolving this issues? |
@hsluoyz what posgres version did you use? Did you try MySQL too? What are the reproduce steps? |
I used Postgres 15. No I didn't try MySQL.
|
@sagarve I can't reproduce this problem in the newest version, can you record a video to display? I use pgsql 16 to reproduce. |
it refer to the configured postgres DB directly to query user permissions |
Hi,
I have a casdoor running inside a docker container which I'm able to access on localhost:8001 (using casdoor production image, not the all-in-one image). I'm trying to sync my casbin policies from my postgres DB into casdoor, for which I've created an adapter and an enforcer using that adapter. The enforcer successfully loads policies from DB and loaded into the casdoor UI when I sync them for the first time. The issue occurs when I open the enforcer again, it doesn't show the loaded policies and instead show an error message as shown in the screenshot attached (which looks like it's trying to create the same policy rows again). Plz suggest a resolution for this particular issue.
Also wanted to know, if before I call the enforcer API for checking user authorisation for a particular resource, do I need to manually sync the enforcer again in case any new policies were added into the DB? Or does it refer to the configured postgres DB directly to query user permissions?
The text was updated successfully, but these errors were encountered: