mirror of
1
Fork 0
forgejo/templates
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 placeholder text for send testing email button in admin/config (#12452) 2020-08-10 22:38:30 -04:00
base Add SVG favicon (#12437) 2020-08-06 08:04:51 +01:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
mail Fix nil pointer in default issue mail template (#11862) 2020-06-12 11:56:31 +03:00
org Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
pwa Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
repo Do not show arrows on comment diffs on pull comment pages (#12434) 2020-08-08 09:22:34 +08:00
status Make error pages translatable (#11163) 2020-04-27 18:03:15 -05:00
swagger Add API to update pr headBranch (#12419) 2020-08-04 21:55:22 +01:00
user Fix bug preventing transfer to private organization (#12497) 2020-08-16 16:27:08 -04:00
home.tmpl Add Octicon SVG spritemap (#10107) 2020-02-11 12:02:41 -05:00
install.tmpl Change default charset for MySQL on install to utf8mb4 (#10989) 2020-04-06 09:33:15 -04:00