Move batch user priority to a capability
Instead of using a magical group, use a special capability to denote users that should get the batch priority behavior. Change-Id: I3e1f8f3ee39f5dcb2cdad2f9c71c46db25fc30b6
This commit is contained in:
		| @@ -18,7 +18,6 @@ import com.google.gerrit.reviewdb.AccountGroup; | ||||
| import com.google.gerrit.reviewdb.AccountProjectWatch; | ||||
| import com.google.gerrit.reviewdb.Change; | ||||
| import com.google.gerrit.server.account.CapabilityControl; | ||||
| import com.google.gerrit.server.config.AuthConfig; | ||||
| import com.google.inject.Inject; | ||||
|  | ||||
| import java.util.Collection; | ||||
| @@ -28,8 +27,8 @@ import java.util.Set; | ||||
| /** An anonymous user who has not yet authenticated. */ | ||||
| public class AnonymousUser extends CurrentUser { | ||||
|   @Inject | ||||
|   AnonymousUser(CapabilityControl.Factory capabilityControlFactory, AuthConfig auth) { | ||||
|     super(capabilityControlFactory, AccessPath.UNKNOWN, auth); | ||||
|   AnonymousUser(CapabilityControl.Factory capabilityControlFactory) { | ||||
|     super(capabilityControlFactory, AccessPath.UNKNOWN); | ||||
|   } | ||||
|  | ||||
|   @Override | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Shawn O. Pearce
					Shawn O. Pearce