1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-16 15:14:24 +00:00
gitea/routers
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 Multiple small admin dashboard fixes (#12153) (#12156) 2020-07-05 21:19:53 +01:00
api/v1 Fix bug preventing transfer to private organization (#12497) (#12501) 2020-08-17 09:32:33 +03:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
events Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
org Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
private Git 2.28 no longer permits diff with ... on unrelated branches (#12370) 2020-07-29 12:42:22 -04:00
repo Fix bug preventing transfer to private organization (#12497) (#12501) 2020-08-17 09:32:33 +03:00
routes Fix ignored login on compare (#12476) (#12478) 2020-08-12 16:36:22 -04:00
user When must change password only show Signout (#11600) (#11637) 2020-05-27 08:08:14 +01:00
utils Handle push rejection message in Merge & Web Editor (#10373) 2020-02-22 15:08:48 +02:00
home.go Ensure public repositories in private organizations are visible and fix admin organizations list (#11465) (#11474) 2020-05-18 07:21:00 +01:00
init.go Remove spurious logging (#12139) (#12148) 2020-07-05 12:09:13 -04:00
install.go Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456) 2020-05-17 15:43:29 +03:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00