mirror of https://github.com/apache/cloudstack.git
Fixed deploy vm for Project in private zone
This commit is contained in:
parent
7a6778cd99
commit
cfea031b28
|
|
@ -248,7 +248,7 @@ public class DomainChecker extends AdapterBase implements SecurityChecker {
|
|||
}
|
||||
//if account is normal user
|
||||
//check if account's domain is a child of zone's domain
|
||||
else if(account.getType() == Account.ACCOUNT_TYPE_NORMAL){
|
||||
else if(account.getType() == Account.ACCOUNT_TYPE_NORMAL || account.getType() == Account.ACCOUNT_TYPE_PROJECT){
|
||||
if(account.getDomainId() == zone.getDomainId()){
|
||||
return true; //zone and account at exact node
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Reference in New Issue