Updated Branches:
  refs/heads/4.2 2c9f07324 -> b6ff1db0e

CLOUDSTACK-4269: UI > account page > hide Setting tab for 
regular-user/domain-admin since they don't have access to listConfigurations 
API.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b6ff1db0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b6ff1db0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b6ff1db0

Branch: refs/heads/4.2
Commit: b6ff1db0ed85c95ba8d9ff90e70dfc601bb75844
Parents: 2c9f073
Author: Jessica Wang <[email protected]>
Authored: Mon Aug 12 16:33:07 2013 -0700
Committer: Jessica Wang <[email protected]>
Committed: Mon Aug 12 16:34:16 2013 -0700

----------------------------------------------------------------------
 ui/scripts/accounts.js | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b6ff1db0/ui/scripts/accounts.js
----------------------------------------------------------------------
diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js
index bf0eaf4..dcf2885 100644
--- a/ui/scripts/accounts.js
+++ b/ui/scripts/accounts.js
@@ -735,6 +735,14 @@
                             }
 
                         },
+                        
+                        tabFilter: function(args) {
+                               var hiddenTabs = [];
+                               if(!isAdmin()) {
+                                       hiddenTabs.push('settings');
+                               }                               
+                               return hiddenTabs;
+                        },
 
                         tabs: {
                             details: {

Reply via email to