Skip to content

Commit d64d936

Browse files
Removed redundant network access check, owner access check already exists
1 parent 909f7d3 commit d64d936

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,9 +1336,6 @@ public UserVm addNicToVirtualMachine(AddNicToVMCmd cmd) throws InvalidParameterV
13361336
throw new CloudRuntimeException("Zone " + vmInstance.getDataCenterId() + ", has a NetworkType of Basic. Can't add a new NIC to a VM on a Basic Network");
13371337
}
13381338

1339-
// Perform account permission check on network
1340-
_accountMgr.checkAccess(caller, AccessType.UseEntry, false, network);
1341-
13421339
//ensure network belongs in zone
13431340
if (network.getDataCenterId() != vmInstance.getDataCenterId()) {
13441341
throw new CloudRuntimeException(vmInstance + " is in zone:" + vmInstance.getDataCenterId() + " but " + network + " is in zone:" + network.getDataCenterId());

0 commit comments

Comments
 (0)