Added better logging when an account attempts to access a command it does not have priviledges for.

This commit is contained in:
will 2011-02-28 17:58:14 -08:00
parent 47264e1f3b
commit 1a1f038afa
1 changed files with 2 additions and 0 deletions

View File

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