mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: include 'everyone' group in template importing (#18257)
This commit is contained in:
@@ -739,6 +739,9 @@ func (s *server) acquireProtoJob(ctx context.Context, job database.ProvisionerJo
|
||||
Metadata: &sdkproto.Metadata{
|
||||
CoderUrl: s.AccessURL.String(),
|
||||
WorkspaceName: input.WorkspaceName,
|
||||
// There is no owner for a template import, but we can assume
|
||||
// the "Everyone" group as a placeholder.
|
||||
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -759,6 +762,9 @@ func (s *server) acquireProtoJob(ctx context.Context, job database.ProvisionerJo
|
||||
UserVariableValues: convertVariableValues(userVariableValues),
|
||||
Metadata: &sdkproto.Metadata{
|
||||
CoderUrl: s.AccessURL.String(),
|
||||
// There is no owner for a template import, but we can assume
|
||||
// the "Everyone" group as a placeholder.
|
||||
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user