forgejo/routers/web/repo
Gusted 30d168bcc8
[GITEA] Fix panic in canSoftDeleteContentHistory
- It's possible that `canSoftDeleteContentHistory` is called without
`ctx.Doer` being set, such as an anonymous user requesting the
`/content-history/detail` endpoint.
- Add a simple condition to always set to `canSoftDelete` to false if an
anonymous user is requesting this, this avoids a panic in the code that
assumes `ctx.Doer` is set.
- Added integration testing.

(cherry picked from commit 0b5db0dcc6)
2024-01-15 16:51:45 +00:00
..
actions [GITEA] allow viewing the latest Action Run on the web 2024-01-15 16:47:16 +00:00
badges [GITEA] Add support for shields.io-based badges 2024-01-15 16:51:45 +00:00
flags [FEAT] Repository flags 2024-01-15 16:51:45 +00:00
setting [GITEA] Optionally allow anyone to edit Wikis 2024-01-15 16:48:44 +00:00
activity.go
attachment.go
blame.go Use information from previous blame parts () 2023-12-21 22:48:18 +01:00
branch.go Adjust object format interface () 2023-12-17 11:56:08 +00:00
cherry_pick.go Upgrade to golangci-lint@v1.55.0 () 2023-10-24 02:54:59 +00:00
commit.go [GITEA] Detect file rename and show in history 2024-01-15 16:11:57 +00:00
compare.go Assign pull request to project during creation () 2024-01-12 15:25:15 +00:00
download.go
editor.go [GITEA] Allow user to select email for file operations in Web UI 2024-01-15 16:11:58 +00:00
editor_test.go
find.go
githttp.go Adjust object format interface () 2023-12-17 11:56:08 +00:00
githttp_test.go Fix http protocol auth () 2023-11-02 22:14:33 +08:00
helper.go
helper_test.go
issue.go [GITEA] Fix /issues/search endpoint 2024-01-15 16:48:44 +00:00
issue_content_history.go [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-15 16:51:45 +00:00
issue_dependency.go Upgrade to golangci-lint@v1.55.0 () 2023-10-24 02:54:59 +00:00
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go Fix missing check () 2023-12-10 21:37:10 +02:00
issue_stopwatch.go Final round of db.DefaultContext refactor () 2023-10-14 08:37:24 +00:00
issue_test.go
issue_timetrack.go Final round of db.DefaultContext refactor () 2023-10-14 08:37:24 +00:00
issue_watch.go
main_test.go
middlewares.go Fix viewing wiki commit on empty repo () 2023-11-14 19:42:23 +08:00
migrate.go
milestone.go Rework markup link rendering () 2024-01-15 08:49:24 +00:00
packages.go
patch.go Upgrade to golangci-lint@v1.55.0 () 2023-10-24 02:54:59 +00:00
projects.go Rework markup link rendering () 2024-01-15 08:49:24 +00:00
projects_test.go
pull.go [GITEA] pulls: "Edit File" button in "Files Changed" tab 2024-01-15 16:48:44 +00:00
pull_review.go
release.go [GITEA] Allow release creation on commit (squash) s/SHAFullLength/FullLength/ 2024-01-15 16:47:16 +00:00
release_test.go Move more functions to db.Find () 2024-01-15 02:19:25 +00:00
render.go Rework markup link rendering () 2024-01-15 08:49:24 +00:00
repo.go Move more functions to db.Find () 2024-01-15 02:19:25 +00:00
search.go
topic.go
treelist.go
view.go [GITEA] repo: Don't redirect the repo to external units 2024-01-15 16:51:45 +00:00
view_test.go
wiki.go Rework markup link rendering () 2024-01-15 08:49:24 +00:00
wiki_test.go