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.
This commit is contained in:
Harikrishna 2022-02-22 13:14:36 +05:30 committed by GitHub
parent e3d0ce9304
commit 4e826d504e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {