Skip to content

Commit a4f1c64

Browse files
authored
fix: allow dynamic parameters to consider the prebuilds user an owner (#18529)
This Pull request allows dynamic parameters to list system users in its search for workspace owners. This is necessary to allow prebuilds to reconcile prebuilt workspaces and to delete them.
1 parent 1d2b96b commit a4f1c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/dynamicparameters/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func (r *dynamicRenderer) getWorkspaceOwnerData(ctx context.Context, ownerID uui
250250
mem, err := database.ExpectOne(r.db.OrganizationMembers(ctx, database.OrganizationMembersParams{
251251
OrganizationID: r.data.templateVersion.OrganizationID,
252252
UserID: ownerID,
253-
IncludeSystem: false,
253+
IncludeSystem: true,
254254
}))
255255
if err != nil {
256256
return err

0 commit comments

Comments
 (0)