[
https://issues.apache.org/jira/browse/CLOUDSTACK-9174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229473#comment-15229473
]
ASF GitHub Bot commented on CLOUDSTACK-9174:
--------------------------------------------
Github user abhinandanprateek commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/1254#discussion_r58807499
--- Diff:
plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
---
@@ -59,7 +59,7 @@ public QuotaSummaryCmd() {
public void execute() {
Account caller = CallContext.current().getCallingAccount();
List<QuotaSummaryResponse> responses;
- if (caller.getAccountId() <= 2) { //non root admin or system
+ if (caller.getType() == Account.ACCOUNT_TYPE_ADMIN) { //admin
account
--- End diff --
Relaxed the condition so that any account with admin type is able to view
the quota summary.
> Quota Service: When a account/user is deleted with low quota, quota service
> still tries to alert the user resulting in NPE
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9174
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9174
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.7.0
> Reporter: Abhinandan Prateek
> Assignee: Abhinandan Prateek
> Priority: Critical
> Fix For: 4.8.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)