0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 01:44:10 -05:00
forgejo/routers/web/org
Gusted d3b31cc1ee
Add GetUserTeams (#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: 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-01 14:09:24 -05:00
..
home.go Allow to filter repositories by language in explore, user and organization repositories lists (#18430) 2022-01-28 13:29:04 +02:00
members.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
org.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
org_labels.go Fix wrong redirect on org labels (#18128) 2021-12-30 07:44:42 +01:00
setting.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
teams.go Add GetUserTeams (#18499) 2022-02-01 14:09:24 -05:00