Add a global capability for viewing all accounts
Users with this capability can auto-complete all accounts regardless of the global accounts.visibility setting. The use case is a core group of committers that should be able to view all accounts, where the rest of the contributors are all in small, non-overlapping accounts that should not be able to view one another. For small numbers of groups it is sufficient to add the committer groups to each of the contributor groups, but this approach becomes a maintenance headache as the number of contributor groups grows to the 10-100 range. Change-Id: Ib31d642484459afa0c129524bc0bc52348dd7416
This commit is contained in:
		 Dave Borowitz
					Dave Borowitz
				
			
				
					committed by
					
						 Edwin Kempin
						Edwin Kempin
					
				
			
			
				
	
			
			
			 Edwin Kempin
						Edwin Kempin
					
				
			
						parent
						
							d4d01dcc1b
						
					
				
				
					commit
					f3548a9e90
				
			| @@ -79,6 +79,9 @@ public class GlobalCapability { | ||||
|   /** Can perform streaming of Gerrit events. */ | ||||
|   public static final String STREAM_EVENTS = "streamEvents"; | ||||
|  | ||||
|   /** Can view all accounts, regardless of {@code accounts.visibility}. */ | ||||
|   public static final String VIEW_ALL_ACCOUNTS = "viewAllAccounts"; | ||||
|  | ||||
|   /** Can view the server's current cache states. */ | ||||
|   public static final String VIEW_CACHES = "viewCaches"; | ||||
|  | ||||
| @@ -106,6 +109,7 @@ public class GlobalCapability { | ||||
|     NAMES_ALL.add(RUN_AS); | ||||
|     NAMES_ALL.add(RUN_GC); | ||||
|     NAMES_ALL.add(STREAM_EVENTS); | ||||
|     NAMES_ALL.add(VIEW_ALL_ACCOUNTS); | ||||
|     NAMES_ALL.add(VIEW_CACHES); | ||||
|     NAMES_ALL.add(VIEW_CONNECTIONS); | ||||
|     NAMES_ALL.add(VIEW_QUEUE); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user