zeripath 
		0b4a8be26b 
		
			
		
	 
	
	
	Ensure that restricted users can access repos for which they are members ( #17460 ) ... 
			There is a small bug in the way that repo access is checked in
repoAssignment: Accessibility is checked by checking if the user has a
marked access to the repository instead of checking if the user has any
team granted access.
This PR changes this permissions check to use HasAccess() which does the
correct test. There is also a fix in the release api ListReleases where
it should return draft releases if the user is a member of a team with
write access to the releases.
The PR also adds a testcase.
Signed-off-by: Andrew Thornton <art27@cantab.net> 
		
	 
		2021-10-28 10:54:40 +08:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2021-10-21 17:22:43 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-06 01:25:46 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-20 16:37:19 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-28 10:54:40 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-21 18:06:19 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-17 19:51:56 +01:00 
		 
	
		
			
			
			
			
			
			2021-10-21 17:10:49 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-27 19:07:19 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-06 15:36:24 -05:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-08 19:03:04 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-08 19:03:04 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-08-09 14:08:51 -04:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
	
		
			
			
			
			
			
			2021-09-25 15:00:12 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-22 13:38:34 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-07 23:10:14 +03:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-07-13 15:28:07 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-22 13:38:34 +08:00 
		 
	
		
			
			
			
			
			
			2021-03-14 19:52:12 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-27 16:55:12 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-10 18:40:03 -04:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-23 22:47:38 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-23 22:47:38 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-12 12:47:19 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-29 22:53:12 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-25 15:00:12 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-05 16:41:48 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-05 16:41:48 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-27 19:07:19 +01:00 
		 
	
		
			
			
			
			
			
			2021-06-07 07:27:09 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-25 15:00:12 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-27 19:07:19 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-27 16:55:12 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-13 20:47:02 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-07 22:39:59 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-22 13:38:34 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-01-20 20:36:55 +00:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-05 20:39:37 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-06 15:36:24 -05:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2020-08-16 23:07:38 -04:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-25 13:01:16 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-18 21:12:26 +01:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-23 23:45:36 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-12 20:11:35 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-12 20:11:35 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-25 15:00:12 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-24 19:32:56 +08:00 
		 
	
		
			
			
			
			
			
			2021-09-19 19:49:59 +08:00 
		 
	
		
			
			
			
			
			
			2020-11-27 21:42:08 -05:00