ipa/freeipa-3.0.0.pre1-015-indirect-roles-in-webui.patch
2012-08-06 18:17:49 +02:00

29 lines
1.0 KiB
Diff

From e494650b2cdb6ac7e1eda3da7cf03d4c36f2739a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Sp=C3=A5ngberg?= <david@tunna.org>
Date: Wed, 4 Jul 2012 10:28:43 +0200
Subject: [PATCH 15/79] 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.
---
install/ui/webui.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 66efdb2cf7c90780cb2647ccdbb93ebb5bf79540..9df6f76f1b728bdee83206afc3771ca98ab141c8 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;
}
--
1.7.11.2