Fixed deploy vm for Project in private zone

This commit is contained in:
Alena Prokharchyk 2012-02-01 11:02:51 -08:00
parent 7a6778cd99
commit cfea031b28
1 changed files with 1 additions and 1 deletions

View File

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