Updated Branches: refs/heads/master 9e3aa37a8 -> 641fb1c24
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/641fb1c2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/641fb1c2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/641fb1c2 Branch: refs/heads/master Commit: 641fb1c24e518bb204d72a92932dc83cd0a2f9a2 Parents: 9e3aa37 Author: Jessica Wang <[email protected]> Authored: Mon Aug 12 16:33:07 2013 -0700 Committer: Jessica Wang <[email protected]> Committed: Mon Aug 12 16:35:09 2013 -0700 ---------------------------------------------------------------------- ui/scripts/accounts.js | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/641fb1c2/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: {
