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.
gitea/routers/api/v1
techknowlogick ec48618d40
Fix bug preventing transfer to private organization (#12497) (#12501)
* Fix bug preventing transfer to private organization

The code assessing whether a private organization was visible to a user before
allowing transfer was incorrect due to testing membership the wrong way round

This PR fixes this issue and renames the function performing the test to be
clearer.

Further looking at the API for transfer repository - no testing was
performed to ensure that the acting user could actually see the new
owning organization.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* change IsUserPartOfOrg everywhere

Co-authored-by: zeripath <art27@cantab.net>
5 years ago
..
admin Various fixes in login sources (#10428) 5 years ago
misc Allow different HardBreaks settings for documents and comments (#11515) (#11599) 5 years ago
notify Extend Notifications API and return pinned notifications by default (#12164) (#12232) 5 years ago
org Add Organization Wide Labels (#10814) 5 years ago
repo Fix bug preventing transfer to private organization (#12497) (#12501) 5 years ago
swagger API: Add pull review endpoints (#11224) 5 years ago
user Rework api/user/repos for pagination (#11827) (#11877) 5 years ago
utils Granular webhook events (#9626) 5 years ago
api.go Correctly set the organization num repos (#11339) 5 years ago