mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: hide deleted users from org members query (#16830)
This commit is contained in:
@@ -5202,7 +5202,7 @@ SELECT
|
|||||||
FROM
|
FROM
|
||||||
organization_members
|
organization_members
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
users ON organization_members.user_id = users.id
|
users ON organization_members.user_id = users.id AND users.deleted = false
|
||||||
WHERE
|
WHERE
|
||||||
-- Filter by organization id
|
-- Filter by organization id
|
||||||
CASE
|
CASE
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ SELECT
|
|||||||
FROM
|
FROM
|
||||||
organization_members
|
organization_members
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
users ON organization_members.user_id = users.id
|
users ON organization_members.user_id = users.id AND users.deleted = false
|
||||||
WHERE
|
WHERE
|
||||||
-- Filter by organization id
|
-- Filter by organization id
|
||||||
CASE
|
CASE
|
||||||
|
|||||||
Reference in New Issue
Block a user