refactor: Add deprecation notice for UM disabled mode (#6367)

This commit is contained in:
Iván Ovejero 2023-06-02 13:26:12 +02:00 committed by GitHub
parent 6ddf16128b
commit 85500d76fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -95,6 +95,12 @@ export abstract class BaseCommand extends Command {
);
}
if (process.env.N8N_USER_MANAGEMENT_DISABLED === 'true') {
LoggerProxy.warn(
`User Management will be mandatory in a future version of n8n. Please set up the instance owner. To learn more: ${USER_MANAGEMENT_DOCS_URL}`,
);
}
this.instanceId = this.userSettings.instanceId ?? '';
await Container.get(PostHogClient).init(this.instanceId);
await Container.get(InternalHooks).init(this.instanceId);

View file

@ -729,7 +729,7 @@ export const schema = {
userManagement: {
disabled: {
doc: 'Disable user management and hide it completely.',
doc: '[DEPRECATED] Disable user management and hide it completely.',
format: Boolean,
default: false,
env: 'N8N_USER_MANAGEMENT_DISABLED',