Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move almost all functions' parameter db.Engine to context.Context (#19748) | Lunny Xiao | 2022-05-20 | 1 | -1/+1 |
| | | | | * Move almost all functions' parameter db.Engine to context.Context * remove some unnecessary wrap functions | ||||
* | Add `ContextUser` to http request context (#18798) | KN4CK3R | 2022-03-26 | 1 | -0/+62 |
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. |