mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8077: Not able to deploy VM using a shared template.
This commit is contained in:
parent
1a8c85a7a8
commit
cf1eed4811
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue