1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-11 12:44:24 +00:00
gitea/routers/web/org
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
..
home.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
members.go Move more model into models/user (#17826) 2021-11-28 22:11:58 +08:00
org_labels.go Fix wrong redirect on org labels (#18128) 2021-12-30 07:44:42 +01:00
org.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
setting.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
teams.go Add GetUserTeams (#18499) (#18531) 2022-02-02 08:40:04 +00:00