From ae1858d1cd98b6a5f9c5f560116f72b7abd2aee9 Mon Sep 17 00:00:00 2001 From: bfederle Date: Fri, 9 Mar 2012 14:12:49 -0800 Subject: [PATCH] bug 14191 -Only show domains under logged in user's domain -Allow domain admins to add accounts from 'Accounts' section --- ui/scripts/accounts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js index 8d8856416bc..17301c5f2a1 100644 --- a/ui/scripts/accounts.js +++ b/ui/scripts/accounts.js @@ -55,7 +55,7 @@ add: { label: 'label.add.account', preFilter: function(args) { - if(isAdmin()) + if(isAdmin() || isDomainAdmin()) return true; else return false; @@ -97,6 +97,7 @@ select: function(args) { $.ajax({ url: createURL("listDomains&listAll=true"), + domainid: args.context.users[0].domainid, dataType: "json", async: false, success: function(json) {