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 authored and Petr Vobornik committed 2012-07-11 08:54:45 +02:00
1 parent 0d11b8b056
commit e494650b2c
1 file changed
+3
+3
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;
}