mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd/database): match group name case-insensitively in search (#27894)
This commit is contained in:
@@ -32,9 +32,11 @@ SELECT
|
||||
FROM
|
||||
groups
|
||||
WHERE
|
||||
organization_id = $1
|
||||
organization_id = @organization_id
|
||||
AND
|
||||
name = $2
|
||||
-- Match group name case-insensitively, consistent with organization and
|
||||
-- workspace name lookups.
|
||||
LOWER("name") = LOWER(@name)
|
||||
LIMIT
|
||||
1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user