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/repo
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
5 years ago
..
activity.go Add top author stats to activity page (#9615) 5 years ago
attachment.go Move dropzone.js to npm/webpack (#10645) 5 years ago
blame.go Ensure BlameReaders close at end of request (#12102) 5 years ago
branch.go Handle more pathological branch and tag names (#11843) 5 years ago
commit.go Render the git graph on the server (#12333) 5 years ago
compare.go Syntax highlight expanded code blobs (#12223) 5 years ago
download.go Add Access-Control-Expose-Headers (#12446) 5 years ago
editor.go Fix numbr of files, total additions, and deletions (#11614) 5 years ago
editor_test.go Add Close() method to gogitRepository (#8901) 5 years ago
http.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
issue.go Prevent empty div when editing comment (#12404) 5 years ago
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 5 years ago
issue_label.go Move jquery-minicolors to npm/webpack (#12305) 5 years ago
issue_label_test.go fix go vet error (#3740) 7 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 6 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 6 years ago
issue_timetrack.go [API] Extend times API (#9200) 5 years ago
issue_watch.go Fix PR/issue redirects when having external tracker (#9339) 5 years ago
lfs.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go Add gitea-vet (#10948) 5 years ago
milestone.go Add name filter to API for GetMilestoneList (#12336) 5 years ago
pull.go Add API to update pr headBranch (#12419) 5 years ago
pull_review.go Add a way to mark Conversation (code comment) resolved (#11037) 5 years ago
release.go Add action feed for new release (#12324) 5 years ago
release_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo.go Global default branch setting (#11918) 5 years ago
search.go Add detected file language to code search (#10256) 5 years ago
setting.go Fix bug preventing transfer to private organization (#12497) 5 years ago
setting_protected_branch.go Prevent merge of outdated PRs on protected branches (#11012) 5 years ago
settings_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 5 years ago
topic.go Add API endpoint for accessing repo topics (#7963) 6 years ago
view.go Server-side syntax highlighting for all code (#12047) 5 years ago
webhook.go Don't use legacy method to send Matrix Webhook (#12348) 5 years ago
wiki.go Allow different HardBreaks settings for documents and comments (#11515) 5 years ago
wiki_test.go Fix wiki raw view on sub path (#10002) 5 years ago