mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Indirect roles in WebUI
Add a check in the WebUI to use the admin navigation if a user is a indirect member of a role.
This commit is contained in:
committed by
Petr Vobornik
parent
0d11b8b056
commit
e494650b2c
@@ -151,6 +151,9 @@ $(function() {
|
||||
} else if (whoami.hasOwnProperty('memberof_role') &&
|
||||
whoami.memberof_role.length > 0) {
|
||||
factory = IPA.admin_navigation;
|
||||
} else if (whoami.hasOwnProperty('memberofindirect_role') &&
|
||||
whoami.memberofindirect_role.length > 0) {
|
||||
factory = IPA.admin_navigation;
|
||||
} else {
|
||||
factory = IPA.self_serv_navigation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user