Skip to content

Commit f45a170

Browse files
committed
Call compileToSQL in getWorkspaces
1 parent db647ba commit f45a170

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/database/databasefake/databasefake.go

+5
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,11 @@ func (q *fakeQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg database.
889889
q.mutex.RLock()
890890
defer q.mutex.RUnlock()
891891

892+
_, err := prepared.CompileToSQL(ctx, rbac.ConfigWithoutACL())
893+
if err != nil {
894+
return nil, err
895+
}
896+
892897
workspaces := make([]database.Workspace, 0)
893898
for _, workspace := range q.workspaces {
894899
if arg.OwnerID != uuid.Nil && workspace.OwnerID != arg.OwnerID {

0 commit comments

Comments
 (0)