mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
d08f1296e8
commit
ae1858d1cd
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user