Correct bad name of Access Database capability in error message
The global capability required to use gsql was incorrectly named "Perform Raw Query" in the exception message (eventually presented to the user). Now using actual name "Access Database". Change-Id: Ib05b0af4dddf127d532415bf454ed76aa2ed8857
This commit is contained in:
@@ -72,7 +72,7 @@ final class AdminQueryShell extends SshCommand {
|
||||
private void checkPermission() throws PermissionDeniedException {
|
||||
if (!currentUser.getCapabilities().canAccessDatabase()) {
|
||||
throw new PermissionDeniedException(String.format(
|
||||
"%s does not have \"Perform Raw Query\" capability.",
|
||||
"%s does not have \"Access Database\" capability.",
|
||||
currentUser.getUserName()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user