Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

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 🙂

2views
2users
1 minread

image.png

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

image.png

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 :

image.png

Is it a normal behavior ?

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

image.png

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

image.png

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?

1 / 9
Mar 2024