mirror of https://github.com/apache/cloudstack.git
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:
parent
e7082d9384
commit
74a15a5c23
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue