summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDavid SpÄngberg <david@tunna.org>2012-07-04 10:28:43 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-07-11 08:54:45 +0200
commite494650b2cdb6ac7e1eda3da7cf03d4c36f2739a (patch)
tree3b05a7e447a98739f58b749adabe4ba60789f79f /install
parent0d11b8b0567e8440f9cb553a99e1f66e545509d0 (diff)
downloadfreeipa-e494650b2cdb6ac7e1eda3da7cf03d4c36f2739a.tar.gz
freeipa-e494650b2cdb6ac7e1eda3da7cf03d4c36f2739a.tar.xz
freeipa-e494650b2cdb6ac7e1eda3da7cf03d4c36f2739a.zip
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.
Diffstat (limited to 'install')
-rw-r--r--install/ui/webui.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 66efdb2cf..9df6f76f1 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -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;
}