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:
David Spångberg
2012-07-04 10:28:43 +02:00
committed by Petr Vobornik
parent 0d11b8b056
commit e494650b2c

View File

@@ -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;
}