mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6436: list* api commands with forDisplay parameter - don't return resources with display=false by default. ForDisplay=false has to be explicitly specified in the command
This commit is contained in:
parent
b3f18e7d74
commit
664e5e3190
|
|
@ -16,9 +16,6 @@
|
|||
// under the License.
|
||||
package org.apache.cloudstack.api;
|
||||
|
||||
import org.apache.cloudstack.context.CallContext;
|
||||
|
||||
import com.cloud.user.Account;
|
||||
|
||||
public abstract class BaseListAccountResourcesCmd extends BaseListDomainResourcesCmd {
|
||||
|
||||
|
|
@ -30,10 +27,6 @@ public abstract class BaseListAccountResourcesCmd extends BaseListDomainResource
|
|||
}
|
||||
|
||||
public Boolean getDisplay() {
|
||||
Account caller = CallContext.current().getCallingAccount();
|
||||
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) {
|
||||
return true;
|
||||
}
|
||||
return null;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue