gitea/services/context
Lunny Xiao a989404e23
Fix javascript error when an anonymous user visiting migration page ()
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>
..
upload Refactor names ()
access_log.go Move context from modules to services ()
api.go Refactor names ()
api_org.go Move context from modules to services ()
api_test.go Move context from modules to services ()
base.go Refactor names ()
base_test.go Use strict protocol check when redirect ()
captcha.go Refactor cache and disable go-chi cache ()
context.go Refactor CSRF protector ()
context_cookie.go Move context from modules to services ()
context_model.go Move context from modules to services ()
context_request.go Move context from modules to services ()
context_response.go Refactor AppURL usage ()
context_template.go Move context from modules to services ()
context_test.go Refactor external URL detection ()
csrf.go Refactor CSRF protector ()
org.go Refactor names ()
package.go Refactor names ()
pagination.go Remove AddParamIfExist(AddParam) ()
permission.go Move context from modules to services ()
private.go Move context from modules to services ()
repo.go Fix javascript error when an anonymous user visiting migration page ()
response.go Move context from modules to services ()
user.go Refactor names ()
utils.go Move context from modules to services ()
xsrf.go Move context from modules to services ()
xsrf_test.go Move context from modules to services ()