Skip to content

Commit 664e5e3

Browse files
author
Alena Prokharchyk
committed
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
1 parent b3f18e7 commit 664e5e3

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

api/src/org/apache/cloudstack/api/BaseListAccountResourcesCmd.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
// under the License.
1717
package org.apache.cloudstack.api;
1818

19-
import org.apache.cloudstack.context.CallContext;
20-
21-
import com.cloud.user.Account;
2219

2320
public abstract class BaseListAccountResourcesCmd extends BaseListDomainResourcesCmd {
2421

@@ -30,10 +27,6 @@ public String getAccountName() {
3027
}
3128

3229
public Boolean getDisplay() {
33-
Account caller = CallContext.current().getCallingAccount();
34-
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) {
35-
return true;
36-
}
37-
return null;
30+
return true;
3831
}
3932
}

0 commit comments

Comments
 (0)