From 761a192042f9d3534256e1065e0c4fce0ecec966 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 8 Nov 2010 21:29:49 -0800 Subject: [PATCH] bug 7027: domain admins can no longer modify resource limits of any accounts status 7027: resolved fixed --- ui/scripts/cloud.core.accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.accounts.js b/ui/scripts/cloud.core.accounts.js index 9787e8195d9..7ab51be914d 100644 --- a/ui/scripts/cloud.core.accounts.js +++ b/ui/scripts/cloud.core.accounts.js @@ -198,7 +198,7 @@ function showAccountsTab(domainId) { template.find("#account_enable, #account_disable").data("accountId", accountId); - if (json.accounttype == roleTypeUser || json.accounttype == roleTypeDomainAdmin) { + if (isAdmin() && (json.accounttype == roleTypeUser || json.accounttype == roleTypeDomainAdmin)) { template.find("#account_resource_limits_container").show(); var that = template; template.find("#account_resource_limits").bind("click", function() {