From edd334c67acf1f797103276c6e6a8978d9ff72e9 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Oct 13 2011 03:20:07 +0000 Subject: 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 --- diff --git a/install/ui/webui.js b/install/ui/webui.js index f9fa41e..189cddd 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;