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
..
2022-01-14 16:03:31 +01:00
2022-01-10 17:32:37 +08:00
2021-12-20 04:41:31 +00:00
2021-12-06 00:24:57 +08:00
2022-01-10 17:32:37 +08:00
2022-01-10 17:32:37 +08:00
2022-01-14 16:03:31 +01:00
2020-10-02 23:37:53 -04:00
2022-01-10 23:46:26 +08:00
2021-12-20 04:41:31 +00:00
2022-01-02 21:12:35 +08:00
2022-01-10 17:32:37 +08:00
2022-01-10 17:32:37 +08:00
2021-12-20 04:41:31 +00:00
2022-01-02 21:12:35 +08:00
2022-01-14 16:03:31 +01:00
2021-12-20 04:41:31 +00:00
2022-01-10 17:32:37 +08:00
2021-12-20 04:41:31 +00:00
2020-04-05 07:20:50 +01:00
2022-01-04 15:13:52 +00:00
2021-10-13 22:50:23 -04:00
2021-12-20 04:41:31 +00:00