You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 years ago
..
blob.go Swagger info corrections (#9441) 5 years ago
branch.go [API] Add branch delete (#11112) 5 years ago
collaborators.go API add/generalize pagination (#9452) 5 years ago
commits.go Fix regression: Gitea commits API again returns commit summaries, not full messages (#12186) (#12187) 5 years ago
file.go In File Create/Update API return 404 if Branch does not exist (#11791) (#11795) 5 years ago
fork.go API add/generalize pagination (#9452) 5 years ago
git_hook.go Swagger info corrections (#9441) 5 years ago
git_ref.go Swagger info corrections (#9441) 5 years ago
hook.go API add/generalize pagination (#9452) 5 years ago
hook_test.go API endpoint for testing webhook (#3550) 7 years ago
issue.go Fix timezone on issue deadline (#11697) (#11784) 5 years ago
issue_comment.go API add/generalize pagination (#9452) 5 years ago
issue_label.go Add Organization Wide Labels (#10814) 5 years ago
issue_reaction.go API add/generalize pagination (#9452) 5 years ago
issue_stopwatch.go Prevent panic in stopwatch (#10670) 5 years ago
issue_subscription.go Return issue subscription status from API subscribe (#10966) 5 years ago
issue_tracked_time.go Fix tracked time issues (#11349) 5 years ago
key.go API add/generalize pagination (#9452) 5 years ago
label.go Add Organization Wide Labels (#10814) 5 years ago
main_test.go API endpoint for testing webhook (#3550) 7 years ago
migrate.go Various fixes in login sources (#10428) 5 years ago
milestone.go Refactor Milestone related (#11225) 5 years ago
mirror.go Refactor api repo dir (#10048) 5 years ago
pull.go Add option to API to update PullRequest base branch (#11666) (#11796) 5 years ago
pull_review.go Add default CommitID for create pull review api (#11334) 5 years ago
release.go API add/generalize pagination (#9452) 5 years ago
release_attachment.go Swagger info corrections (#9441) 5 years ago
repo.go Fix repo-list private and total count bugs (#11500) (#11532) 5 years ago
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 6 years ago
star.go API add/generalize pagination (#9452) 5 years ago
status.go API add/generalize pagination (#9452) 5 years ago
subscriber.go API add/generalize pagination (#9452) 5 years ago
tag.go [API] enable paggination for ListRepoTags (#10454) 5 years ago
topic.go Honor DEFAULT_PAGING_NUM for API (#11805) (#11813) 5 years ago
transfer.go Fix bug preventing transfer to private organization (#12497) (#12501) 5 years ago
tree.go Swagger info corrections (#9441) 5 years ago