Skip to content

Commit 600a430

Browse files
committed
chore: assume everyone group in template importing
1 parent 3f406c7 commit 600a430

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

coderd/provisionerdserver/provisionerdserver.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,9 @@ func (s *server) acquireProtoJob(ctx context.Context, job database.ProvisionerJo
739739
Metadata: &sdkproto.Metadata{
740740
CoderUrl: s.AccessURL.String(),
741741
WorkspaceName: input.WorkspaceName,
742+
// There is no owner for a template import, but we can assume
743+
// the "Everyone" group as a placeholder.
744+
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
742745
},
743746
},
744747
}
@@ -759,6 +762,9 @@ func (s *server) acquireProtoJob(ctx context.Context, job database.ProvisionerJo
759762
UserVariableValues: convertVariableValues(userVariableValues),
760763
Metadata: &sdkproto.Metadata{
761764
CoderUrl: s.AccessURL.String(),
765+
// There is no owner for a template import, but we can assume
766+
// the "Everyone" group as a placeholder.
767+
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
762768
},
763769
},
764770
}

0 commit comments

Comments
 (0)