Skip to content

Commit 707d699

Browse files
author
Alena Prokharchyk
committed
Revert "fix CLOUDSTACK-2989, do not list network offering with specifyvlan=true for non-root-admin user"
This reverts commit 94254e3. Conflicts: server/src/com/cloud/configuration/ConfigurationManagerImpl.java Regular user should be able to list the network offering with specifyVlan=true. He just can't use when create the network as he is unaware of the physical network topology. But as the admin can create the network on the user's behalf using this kind of offering, so the user should be able to see the offering's details
1 parent 950672e commit 707d699

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎server/src/com/cloud/configuration/ConfigurationManagerImpl.java‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4508,9 +4508,6 @@ public List<? extends NetworkOffering> searchForNetworkOfferings(ListNetworkOffe
45084508
}
45094509

45104510
// only root admin can list network offering with specifyVlan = true
4511-
if(caller.getType() != Account.ACCOUNT_TYPE_ADMIN){
4512-
specifyVlan = false;
4513-
}
45144511
if (specifyVlan != null) {
45154512
sc.addAnd("specifyVlan", SearchCriteria.Op.EQ, specifyVlan);
45164513
}

0 commit comments

Comments
 (0)