diff --git a/server/src/com/cloud/acl/DomainChecker.java b/server/src/com/cloud/acl/DomainChecker.java index a5ca9cc788c..60389ab3b75 100644 --- a/server/src/com/cloud/acl/DomainChecker.java +++ b/server/src/com/cloud/acl/DomainChecker.java @@ -181,7 +181,8 @@ public class DomainChecker extends AdapterBase implements SecurityChecker { //check if account's domain is a child of zone's domain (Note: This is made consistent with the list command for disk offering) else if (_accountService.isNormalUser(account.getId()) || account.getType() == Account.ACCOUNT_TYPE_RESOURCE_DOMAIN_ADMIN - || _accountService.isDomainAdmin(account.getId())) { + || _accountService.isDomainAdmin(account.getId()) + || account.getType() == Account.ACCOUNT_TYPE_PROJECT) { if (account.getDomainId() == dof.getDomainId()) { return true; //disk offering and account at exact node } else { @@ -219,7 +220,8 @@ public class DomainChecker extends AdapterBase implements SecurityChecker { //check if account's domain is a child of zone's domain (Note: This is made consistent with the list command for service offering) else if (_accountService.isNormalUser(account.getId()) || account.getType() == Account.ACCOUNT_TYPE_RESOURCE_DOMAIN_ADMIN - || _accountService.isDomainAdmin(account.getId())) { + || _accountService.isDomainAdmin(account.getId()) + || account.getType() == Account.ACCOUNT_TYPE_PROJECT) { if (account.getDomainId() == so.getDomainId()) { return true; //service offering and account at exact node } else {