Fix Admin control to disable workspace creation for non-admin users (#14895)
fix #13460 --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
@@ -358,6 +358,15 @@ export class ConfigVariables {
|
||||
})
|
||||
EMAIL_SMTP_PASSWORD: string;
|
||||
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.Other,
|
||||
description:
|
||||
'When enabled, only server admins can create new workspaces. Ignored during initial setup when no workspace exists.',
|
||||
type: ConfigVariableType.BOOLEAN,
|
||||
})
|
||||
@IsOptional()
|
||||
IS_WORKSPACE_CREATION_LIMITED_TO_SERVER_ADMINS = false;
|
||||
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.StorageConfig,
|
||||
description: 'Type of storage to use (local or S3)',
|
||||
|
||||
Reference in New Issue
Block a user