Require 'View Plugins' capability to list plugins through SSH

The 'View Plugins' capability should allow listing plugins, not only
through the REST API, but also through SSH.

The documentation was already updated by commit b3f31d8b which wrongly
assumed that listing plugins through SSH would already require this
capability.

Change-Id: I3e4e9999905126b17679c14679ad7efa254f4617
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-05-05 13:05:10 +02:00
committed by David Pursehouse
parent 885ad8a7ef
commit 9c3b5e1fbd

View File

@@ -23,7 +23,7 @@ import com.google.gerrit.sshd.CommandMetaData;
import com.google.gerrit.sshd.SshCommand;
import com.google.inject.Inject;
@RequiresCapability(GlobalCapability.ADMINISTRATE_SERVER)
@RequiresCapability(GlobalCapability.VIEW_PLUGINS)
@CommandMetaData(name = "ls", description = "List the installed plugins",
runsAt = MASTER_OR_SLAVE)
final class PluginLsCommand extends SshCommand {