bug 14191

-Only show domains under logged in user's domain

-Allow domain admins to add accounts from 'Accounts' section
This commit is contained in:
bfederle 2012-03-09 14:12:49 -08:00
parent d08f1296e8
commit ae1858d1cd

View File

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