Hello! I'm reading on casbin's doc that we are unable to edit models at run time -> https://casbin.org/docs/model-storage/ . But on the casdoor's UI, I see some options that make me able to create/update new models. I'm asking this question because I'm struggling creating new permissions using models created from UI (getting "model canno't be found" error). I'm I missing something here? thanks 🙂
paste a screenshot or video

(model is just a copy paste from the user built-in one)

I can add models using built-in organization withouth issues
I actually succeed using "user-model-built-in" as a name for a new model :

Is it a normal behavior ?
you mean changing name won't work?
I mean that if I use the same name as the one provided built-in (on application boot), it does work
But if I change it towards "user-model-test" it won't

Edit: if the org is selected top-right of the UI, it does work. Problem happens when "all" is selected. I'm able to reproduce it multiple times so it may be a bug in the UI

why so strange?
Can you debug it and find out which code is wrong?
I will look into it tommorow, but so far haven't found anything weird. When using network inspection, frontend's api calls are identical wether setting the org on top right or not
I will try to request the API directly and see what'sup
I'm the first one to encounter such issue? 🙂
can you create a github issue with all details and reproduce steps?
Join the conversation
Sign up to reply, like and follow topics.
Suggested Topics
Want to read more? Browse other topics in Casdoor or view latest topics.
