forgejo/routers/web/repo
Gusted 334b703b17
[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)
(cherry picked from commit 30d168bcc8)
(cherry picked from commit 19be82b7ef)
2024-01-28 10:58:28 +01:00
..
actions [GITEA] allow viewing the latest Action Run on the web 2024-01-28 10:54:59 +01:00
badges [GITEA] Add support for shields.io-based badges 2024-01-28 10:55:00 +01:00
flags [FEAT] Repository flags 2024-01-28 10:58:28 +01:00
setting [GITEA] Optionally allow anyone to edit Wikis 2024-01-28 10:54:59 +01:00
activity.go
attachment.go
blame.go Use information from previous blame parts (#28572) 2023-12-21 22:48:18 +01:00
branch.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
cherry_pick.go
commit.go [GITEA] Detect file rename and show in history 2024-01-28 10:48:05 +01:00
compare.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
download.go
editor.go [GITEA] Allow user to select email for file operations in Web UI 2024-01-28 10:54:59 +01:00
editor_test.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
find.go
githttp.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
githttp_test.go
helper.go
helper_test.go
issue.go [GITEA] Fix /issues/search endpoint 2024-01-28 10:54:59 +01:00
issue_content_history.go [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-28 10:58:28 +01:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Revert adding htmx until we finaly decide to add it (#28879) 2024-01-21 21:42:35 +08:00
main_test.go
middlewares.go
migrate.go
milestone.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
packages.go
patch.go
projects.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
projects_test.go
pull.go [GITEA] pulls: "Edit File" button in "Files Changed" tab 2024-01-28 10:55:00 +01:00
pull_review.go Don't reload timeline page when (un)resolving or replying conversation (#28654) 2024-01-24 03:26:28 +00:00
release.go [GITEA] Allow release creation on commit 2024-01-28 09:22:15 +01:00
release_test.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
render.go Preserve BOM in web editor (#28935) 2024-01-27 18:02:51 +00:00
repo.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
search.go
topic.go
treelist.go
view.go [GITEA] repo: Don't redirect the repo to external units 2024-01-28 10:55:00 +01:00
view_test.go
wiki.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
wiki_test.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00