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:
Alena Prokharchyk 2014-04-17 13:50:24 -07:00
parent b3f18e7d74
commit 664e5e3190
1 changed files with 1 additions and 8 deletions

View File

@ -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;
}
}