1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 14:14:25 +00:00
gitea/routers/web
zeripath 9c318a17f5
Add GetUserTeams (#18499) (#18531)
Backport #18499

* Correct use `UserID` in `SearchTeams`

- Use `UserID` in the `SearchTeams` function, currently it was useless
to pass such information. Now it does a INNER statement to `team_user`
which obtains UserID -> TeamID data.
- Make OrgID optional.
- Resolves #18484

* Seperate searching specific user

* Add condition back

* Use correct struct type

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-02-02 08:40:04 +00:00
..
admin Fix OAuth Source Edit Page (#18495) (#18503) 2022-01-31 23:36:34 +02:00
auth Fix OAuth Source Edit Page (#18495) (#18503) 2022-01-31 23:36:34 +02:00
dev Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
events Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
explore Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
feed Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
org Add GetUserTeams (#18499) (#18531) 2022-02-02 08:40:04 +00:00
repo Only view milestones from current repo (#18414) (#18417) 2022-01-26 22:09:07 +00:00
user Webauthn nits (#18284) 2022-01-15 17:52:56 +01:00
base.go Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
goget.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
home.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
metrics.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 2021-09-28 01:38:06 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Support webauthn (#17957) 2022-01-14 16:03:31 +01:00