gitea/routers
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
..
api/v1 Ensure that restricted users can access repos for which they are members (#17460) 2021-10-28 10:54:40 +08:00
common Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
install Use a variable but a function for IsProd because of a slight performance increment (#17368) 2021-10-20 16:37:19 +02:00
private Prevent panic in serv.go with Deploy Keys (#17434) 2021-10-26 01:24:19 +02:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web Add appearance section in settings (#17433) 2021-10-27 23:40:08 +08:00
init.go Sync gitea app path for git hooks and authorized keys when starting (#17335) 2021-10-21 17:22:43 +08:00