server: fix vm deployment without networkid in a zone with shared networks (#11242)

This commit is contained in:
Wei Zhou 2025-08-06 05:14:40 +02:00 committed by GitHub
parent de5188e50c
commit b9864cb1e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -797,7 +797,7 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel, Confi
NetworkVO ret_network = null;
for (NetworkVO nw : networks) {
try {
checkAccountNetworkPermissions(account, nw);
checkNetworkPermissions(account, nw);
} catch (PermissionDeniedException e) {
continue;
}