CLOUDSTACK-8077: Not able to deploy VM using a shared template.

This commit is contained in:
Min Chen 2014-12-16 15:54:45 -08:00
parent 1a8c85a7a8
commit cf1eed4811
1 changed files with 1 additions and 4 deletions

View File

@ -2800,10 +2800,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
}
// Check templates permissions
if (!template.isPublicTemplate()) {
Account templateOwner = _accountMgr.getAccount(template.getAccountId());
_accountMgr.checkAccess(owner, null, true, templateOwner);
}
_accountMgr.checkAccess(owner, AccessType.UseEntry, false, template);
// check if the user data is correct
validateUserData(userData, httpmethod);