Add fine-grained capabilities for administrative actions
The Global Capabilities section in All-Projects can now be used to grant subcommands that are available over SSH and were previously restricted to only Administrators. Bug: issue 48 Bug: issue 742 Change-Id: I7d8a931b174915191817ff845f1f9a846181d709
This commit is contained in:
		| @@ -58,7 +58,7 @@ public abstract class BaseCommand implements Command { | ||||
|   private static final int PRIVATE_STATUS = 1 << 30; | ||||
|   static final int STATUS_CANCEL = PRIVATE_STATUS | 1; | ||||
|   static final int STATUS_NOT_FOUND = PRIVATE_STATUS | 2; | ||||
|   static final int STATUS_NOT_ADMIN = PRIVATE_STATUS | 3; | ||||
|   public static final int STATUS_NOT_ADMIN = PRIVATE_STATUS | 3; | ||||
|  | ||||
|   @Option(name = "--help", usage = "display this help text", aliases = {"-h"}) | ||||
|   private boolean help; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Shawn O. Pearce
					Shawn O. Pearce