mirror of https://github.com/apache/cloudstack.git
Added better logging when an account attempts to access a command it does not have priviledges for.
This commit is contained in:
parent
47264e1f3b
commit
1a1f038afa
|
|
@ -336,6 +336,7 @@ public class ApiServer implements HttpRequestHandler {
|
|||
short accountType = userAccount.getType();
|
||||
|
||||
if (!isCommandAvailable(accountType, commandName)) {
|
||||
s_logger.info("Account does not have the required priviledges to execute the command: " + commandName);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
@ -408,6 +409,7 @@ public class ApiServer implements HttpRequestHandler {
|
|||
}
|
||||
|
||||
if (!isCommandAvailable(account.getType(), commandName)) {
|
||||
s_logger.info("Account does not have the required priviledges to execute the command: " + commandName);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue