1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-07 04:34:39 -04:00
gitea/routers/web/repo
KN4CK3R 59b867dc2d
Add ContextUser to http request context (#18798)
This PR adds a middleware which sets a ContextUser (like GetUserByParams before) in a single place which can be used by other methods. For routes which represent a repo or org the respective middlewares set the field too.

Also fix a bug in modules/context/org.go during refactoring.
2022-03-26 17:04:22 +08:00
..
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
commit.go
compare.go
download.go
editor_test.go
editor.go
http_test.go
http.go
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
patch.go
projects_test.go
projects.go
pull_review.go
pull.go
release_test.go
release.go
repo.go
search.go
setting_protected_branch.go
setting.go
settings_test.go
tag.go
topic.go
view.go
webhook.go
wiki_test.go
wiki.go