mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-8077: Not able to deploy VM using a shared template.
This commit is contained in:
parent
20777ec3b4
commit
9fb654cbad
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user