Skip to content

Commit 4e826d5

Browse files
system_use column is now moved from disk_offering table to service_offering table, because it is applicable only to service offering. (#6015)
There is a left over usage of system_use when user tries to list disk offering. Now we deleted that reference.
1 parent e3d0ce9 commit 4e826d5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,10 +2932,7 @@ private Pair<List<DiskOfferingJoinVO>, Integer> searchForDiskOfferingsInternal(L
29322932
if (account.getType() == Account.ACCOUNT_TYPE_NORMAL) {
29332933
throw new InvalidParameterValueException("Only ROOT admins and Domain admins can list disk offerings with isrecursive=true");
29342934
}
2935-
} else { // domain + all ancestors
2936-
sc.addAnd("systemUse", SearchCriteria.Op.EQ, false); // non-root users should not see system offering at all
29372935
}
2938-
29392936
}
29402937

29412938
if (volumeId != null && storagePoolId != null) {

0 commit comments

Comments
 (0)