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:
Magnus Bäck
2013-04-01 12:19:10 -04:00
parent 51ecaf7d9c
commit 6d46648ab0

View File

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