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
diff --git a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/AdminQueryShell.java b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/AdminQueryShell.java index f00379b..15229dc 100644 --- a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/AdminQueryShell.java +++ b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/AdminQueryShell.java
@@ -72,7 +72,7 @@ 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())); } }