mirror of https://github.com/apache/cloudstack.git
bug 13295: apply specific security check for the network
status 13295: resolved fixed Reviewed-by: Will Chan
This commit is contained in:
parent
e468755964
commit
88d3f1ba03
|
|
@ -318,7 +318,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
|||
Account account = ApiDBUtils.findAccountById(entity.getAccountId());
|
||||
domainId = account != null ? account.getDomainId() : -1 ;
|
||||
}
|
||||
if (entity.getAccountId() != -1 && domainId != -1 && !(entity instanceof VirtualMachineTemplate)) {
|
||||
if (entity.getAccountId() != -1 && domainId != -1 && !(entity instanceof VirtualMachineTemplate) && !(accessType != null && accessType == AccessType.UseNetwork)) {
|
||||
List<ControlledEntity> toBeChecked = domains.get(entity.getDomainId());
|
||||
//for templates, we don't have to do cross domains check
|
||||
if (toBeChecked == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue