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 20777ec3b4
commit 9fb654cbad

View File

@ -2784,10 +2784,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);