]> source.dussan.org Git - gitea.git/commit
Fix javascript error when an anonymous user visiting migration page (#32144)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 2 Oct 2024 04:37:16 +0000 (12:37 +0800)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 04:37:16 +0000 (04:37 +0000)
commita989404e23f736e7ce1c71e7105506e3bc6cdd76
tree10e3c797b382de65fde50a076a61f020d4fb5389
parent3a4a1bffbebd8a6f024a7fc4849cebbd7f0274d4
Fix javascript error when an anonymous user visiting migration page (#32144)

This PR fixes javascript errors when an anonymous user visits the
migration page.
It also makes task view checking more restrictive.

The router moved from `/user/task/{id}/status` to
`/username/reponame/-/migrate/status` because it's a migrate status.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
models/admin/task.go
routers/web/repo/migrate.go
routers/web/user/task.go [deleted file]
routers/web/web.go
services/context/repo.go
templates/repo/migrate/migrating.tmpl
web_src/js/features/repo-migrate.ts