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

Hey @hsluoyz , Would you be able to check this once, I think this is probable bug in the system.

L

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

L

Hello Everyone,
I am new to Casdoor and I am exploring it, so while exploring it i got doubts and i need some help.
What does Subrole means in Casdoor ?
Does Role inherits the permissions from Subrole ?
or Does Subrole inherits the permissions from the role ?