forgejo/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
events
org
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
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
swagger_json.go