Skip to content

Commit 8d0fd1d

Browse files
committed
fix: add comment describing @authorize_filter usecase
1 parent 837a49c commit 8d0fd1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/database/queries/aibridge.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ WHERE
379379
WHEN @model::text != '' THEN aibridge_interceptions.model ILIKE '%' || @model::text || '%'
380380
ELSE true
381381
END
382+
-- We use an `@authorize_filter` as we are attempting to list models that are relevant
383+
-- to the user and what they are allowed to see.
382384
-- Authorize Filter clause will be injected below in ListAIBridgeModelsAuthorized
383385
-- @authorize_filter
384386
GROUP BY

0 commit comments

Comments
 (0)