summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-10-13 14:48:55 -0400
committerRob Crittenden <rcritten@redhat.com>2011-10-12 23:19:54 -0400
commit93ddfd008af6cd720c6f8c6902e8d24b06d59e72 (patch)
treebf2a7ecd7538a45f74eab3d0cbc6a388d794577c
parent9a4fd254ff69bc34c6d14b2255d49c3297380231 (diff)
downloadfreeipa-93ddfd008af6cd720c6f8c6902e8d24b06d59e72.tar.gz
freeipa-93ddfd008af6cd720c6f8c6902e8d24b06d59e72.tar.xz
freeipa-93ddfd008af6cd720c6f8c6902e8d24b06d59e72.zip
Fix dynamic display of UI tabs based on rights
Fixes the webui for the case wherea user is not admin but has a role. In that case, the UI should show the full administrative tabset, but was instead limited to the selfservice tabset. The problem was rolegroup had been renamed to role but the UI hadn't been updated to reflect this. Addresses https://bugzilla.redhat.com/show_bug.cgi?id=745957 https://fedorahosted.org/freeipa/ticket/1970
-rw-r--r--install/ui/webui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index f9fa41e09..189cddda1 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -139,8 +139,8 @@ $(function() {
} 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) {
+ } else if (whoami.hasOwnProperty('memberof_role') &&
+ whoami.memberof_role.length > 0) {
factory = IPA.admin_navigation;
} else {
factory = IPA.self_serv_navigation;