system_use column is now moved from disk_offering table to service_offering table, because it is applicable only to service offering.

There is a left over usage of system_use when user tries to list disk offering. Now we deleted that reference.
This commit is contained in:
Harikrishna Patnala 2022-02-21 16:43:20 +05:30
parent e7082d9384
commit 74a15a5c23
1 changed files with 0 additions and 3 deletions

View File

@ -2932,10 +2932,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
if (account.getType() == Account.ACCOUNT_TYPE_NORMAL) {
throw new InvalidParameterValueException("Only ROOT admins and Domain admins can list disk offerings with isrecursive=true");
}
} else { // domain + all ancestors
sc.addAnd("systemUse", SearchCriteria.Op.EQ, false); // non-root users should not see system offering at all
}
}
if (volumeId != null && storagePoolId != null) {