forked from gitea/gitea
1
0
Fork 0
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>
2020-08-17 09:32:33 +03:00
..
admin Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
misc Allow different HardBreaks settings for documents and comments (#11515) (#11599) 2020-05-24 11:45:56 +01:00
notify Extend Notifications API and return pinned notifications by default (#12164) (#12232) 2020-07-13 21:52:05 +01:00
org Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
repo Fix bug preventing transfer to private organization (#12497) (#12501) 2020-08-17 09:32:33 +03:00
swagger API: Add pull review endpoints (#11224) 2020-05-02 03:20:51 +03:00
user Rework api/user/repos for pagination (#11827) (#11877) 2020-06-13 18:35:13 +01:00
utils Granular webhook events (#9626) 2020-03-06 07:10:48 +02:00
api.go Correctly set the organization num repos (#11339) 2020-05-12 01:04:08 +03:00