mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
refactor: Add deprecation notice for UM disabled mode (#6367)
This commit is contained in:
parent
6ddf16128b
commit
85500d76fb
|
@ -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);
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue