]> source.dussan.org Git - gitea.git/commit
Fix SQL Query for `SearchTeam` (#20844)
authorGusted <williamzijl7@hotmail.com>
Sun, 21 Aug 2022 16:24:05 +0000 (18:24 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Aug 2022 16:24:05 +0000 (17:24 +0100)
commit0b4c166e8a90beeb1e71ee2fc16b3a240517c82d
tree607869cf2ed3caf90cb9981ab04a8fbba8e58043
parent6d3181406d87503dbd15e4a7c764c8963f13977f
Fix SQL Query for `SearchTeam` (#20844)

- Currently the function takes in the `UserID` option, but isn't being
used within the SQL query. This patch fixes that by checking that only
teams are being returned that the user belongs to.

Fix #20829

Co-authored-by: delvh <dev.lh@web.de>
integrations/api_team_test.go
integrations/api_user_orgs_test.go
integrations/org_test.go
models/fixtures/org_user.yml
models/fixtures/user.yml
models/organization/team.go
routers/web/org/teams.go