1
1
mirror of https://github.com/go-gitea/gitea synced 2024-09-19 02:06:04 +00:00
gitea/templates/user
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
..
auth Ensure that 2fa is checked on reset-password (#9857) 2020-01-19 20:17:12 +00:00
dashboard Rendoer emoji's of Commit message on feed-page (#12373) 2020-07-29 17:09:47 -04:00
notification Use AJAX for notifications table (#10961) 2020-04-24 00:57:38 -03:00
settings Fix margin on attached segment headers when they are separated by other element (#11425) 2020-05-15 21:35:22 -04:00
profile.tmpl Fix bug preventing transfer to private organization (#12497) (#12501) 2020-08-17 09:32:33 +03:00