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() {