Fix about permission issue when using cli to get console
Fixed about issue when using jenkins-cli to get console of a project requires user has Job/Build permission as per guidance from Oleg Nenashev.
@@ -41,7 +41,7 @@ public class ConsoleCommand extends CLICommand {
public int n = -1;
protected int run() throws Exception {
- job.checkPermission(Item.BUILD);
+ job.checkPermission(Item.READ);
Run<?,?> run;
