mirror of
https://github.com/coder/coder.git
synced 2026-10-31 11:02:50 +08:00
feat: add a per-template workspace rename setting (#27558)
This commit is contained in:
@@ -556,6 +556,7 @@ func (api *API) templateBuilderCreateTemplate(rw http.ResponseWriter, r *http.Re
|
||||
UseClassicParameterFlow: false,
|
||||
CorsBehavior: database.CorsBehaviorSimple,
|
||||
AgentsAllowed: true,
|
||||
AllowWorkspaceRenames: false,
|
||||
})
|
||||
if err != nil {
|
||||
if database.IsUniqueViolation(err, database.UniqueTemplatesOrganizationIDNameIndex) {
|
||||
|
||||
Reference in New Issue
Block a user