diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-08-21 18:24:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 17:24:05 +0100 |
commit | 0b4c166e8a90beeb1e71ee2fc16b3a240517c82d (patch) | |
tree | 607869cf2ed3caf90cb9981ab04a8fbba8e58043 /models/fixtures | |
parent | 6d3181406d87503dbd15e4a7c764c8963f13977f (diff) | |
download | gitea-0b4c166e8a90beeb1e71ee2fc16b3a240517c82d.tar.gz gitea-0b4c166e8a90beeb1e71ee2fc16b3a240517c82d.zip |
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>
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/org_user.yml | 6 | ||||
-rw-r--r-- | models/fixtures/user.yml | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/models/fixtures/org_user.yml b/models/fixtures/org_user.yml index a0bc4b9b43..e06d94cfcd 100644 --- a/models/fixtures/org_user.yml +++ b/models/fixtures/org_user.yml @@ -63,3 +63,9 @@ uid: 29 org_id: 17 is_public: true + +- + id: 12 + uid: 2 + org_id: 17 + is_public: true diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index 67ba869c76..87405bfd26 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -309,7 +309,7 @@ avatar_email: user17@example.com num_repos: 2 is_active: true - num_members: 3 + num_members: 4 num_teams: 3 - |