You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
admin Move login related structs and functions to models/login (#17093) 3 years ago
misc Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
notify Notifications API: respond with updated notifications (#17064) 3 years ago
org Update documents for Gitea behind reverse proxy. Fix some small bugs (some URLs are generated without sub-path) (#17320) 3 years ago
repo Ensure that restricted users can access repos for which they are members (#17460) 3 years ago
settings Make mirror feature more configurable (#16957) 3 years ago
swagger Add API to get/edit wiki (#17278) 3 years ago
user Move login related structs and functions to models/login (#17093) 3 years ago
utils Move login related structs and functions to models/login (#17093) 3 years ago
api.go Add API to get/edit wiki (#17278) 3 years ago