summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-07-11 11:08:53 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-07-11 16:08:09 +0000
commit04753403445dd5b73baa1422206b5ca352281e4a (patch)
tree217c6c253ec3c99da3e941cd6a807871c4c3c2af
parent30492ef3faad5eabeb91930795fbfd413a732932 (diff)
downloadfreeipa-04753403445dd5b73baa1422206b5ca352281e4a.zip
freeipa-04753403445dd5b73baa1422206b5ca352281e4a.tar.gz
freeipa-04753403445dd5b73baa1422206b5ca352281e4a.tar.xz
indirect admins
https://fedorahosted.org/freeipa/ticket/1465
-rw-r--r--install/ui/webui.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 62363e8..06cfa1d 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -127,14 +127,16 @@ $(function() {
var whoami = IPA.whoami;
var factory;
+
if (whoami.hasOwnProperty('memberof_group') &&
whoami.memberof_group.indexOf('admins') !== -1) {
factory = IPA.admin_navigation;
-
+ } else if (whoami.hasOwnProperty('memberofindirect_group')&&
+ whoami.memberofindirect_group.indexOf('admins') !== -1) {
+ factory = IPA.admin_navigation;
} else if (whoami.hasOwnProperty('memberof_rolegroup') &&
- whoami.memberof_rolegroup.length > 0) {
+ whoami.memberof_rolegroup.length > 0) {
factory = IPA.admin_navigation;
-
} else {
factory = IPA.self_serv_navigation;
}