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 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
4 years ago
..
admin Add Access-Control-Expose-Headers (#12446) 4 years ago
misc API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 4 years ago
notify Extend Notifications API and return pinned notifications by default (#12164) 4 years ago
org Add Access-Control-Expose-Headers (#12446) 4 years ago
repo Fix bug preventing transfer to private organization (#12497) 4 years ago
settings API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 4 years ago
swagger API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 4 years ago
user Add Access-Control-Expose-Headers (#12446) 4 years ago
utils Granular webhook events (#9626) 4 years ago
api.go Add API to update pr headBranch (#12419) 4 years ago