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

Hello Everyone
I have created 4 roles in Casdoor
https://demo.casdoor.com/roles
admin
sales
hr
superadmin

Also, i have set sub role of hr, sales as admin, and subrole of superadmin as admin.
Given these conditions, hierarchy should be superadmin > admin > (hr, sales)
So superadmin user ideally should have all the roles but this is not the case, and only sales and superadmin is coming, Am i missing something or this is a potential bug ?

screenshot_2024-07-11_at_2.48.51_pm.png

screenshot_2024-07-11_at_2.32.31_pm.png

1views
2users
1 minread

use casbin permissions if you need hierarchy, it

it's better

point out the bug in code, better come with a PR

1 / 3
Jul 2024