forked from gitea/gitea
1
0
Fork 0
gitea/routers/api/v1/repo
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
..
blob.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
branch.go [API] Add branch delete (#11112) 2020-04-19 10:38:09 +08:00
collaborators.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
commits.go Fix regression: Gitea commits API again returns commit summaries, not full messages (#12186) (#12187) 2020-07-08 11:22:07 -04:00
file.go In File Create/Update API return 404 if Branch does not exist (#11791) (#11795) 2020-06-07 22:50:19 +03:00
fork.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
git_hook.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
git_ref.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
hook.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
issue.go Fix timezone on issue deadline (#11697) (#11784) 2020-06-06 13:44:16 +01:00
issue_comment.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_reaction.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_stopwatch.go Prevent panic in stopwatch (#10670) 2020-03-08 14:46:24 -03:00
issue_subscription.go Return issue subscription status from API subscribe (#10966) 2020-04-30 23:55:24 +01:00
issue_tracked_time.go Fix tracked time issues (#11349) 2020-05-09 11:18:44 -03:00
key.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
milestone.go Refactor Milestone related (#11225) 2020-05-12 22:54:35 +01:00
mirror.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
pull.go Add option to API to update PullRequest base branch (#11666) (#11796) 2020-06-07 23:20:53 +03:00
pull_review.go Add default CommitID for create pull review api (#11334) 2020-05-08 19:50:23 +01:00
release.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
release_attachment.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
repo.go Fix repo-list private and total count bugs (#11500) (#11532) 2020-05-21 08:23:20 -05:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
star.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
status.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
subscriber.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
tag.go [API] enable paggination for ListRepoTags (#10454) 2020-02-25 14:07:07 -05:00
topic.go Honor DEFAULT_PAGING_NUM for API (#11805) (#11813) 2020-06-09 16:05:21 +03:00
transfer.go Fix bug preventing transfer to private organization (#12497) (#12501) 2020-08-17 09:32:33 +03:00
tree.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00