0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 07:22:51 +01:00
gitea/routers/api/v1
zeripath d1e67d7ade
Fix bug preventing transfer to private organization (#12497)
* 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
2020-08-16 16:27:08 -04:00
..
admin Add Access-Control-Expose-Headers (#12446) 2020-08-13 18:18:18 +01:00
misc API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00
notify Extend Notifications API and return pinned notifications by default (#12164) 2020-07-12 00:46:01 +03:00
org Add Access-Control-Expose-Headers (#12446) 2020-08-13 18:18:18 +01:00
repo Fix bug preventing transfer to private organization (#12497) 2020-08-16 16:27:08 -04:00
settings API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00
swagger API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00
user Add Access-Control-Expose-Headers (#12446) 2020-08-13 18:18:18 +01:00
utils Granular webhook events (#9626) 2020-03-06 07:10:48 +02:00
api.go Add API to update pr headBranch (#12419) 2020-08-04 21:55:22 +01:00