mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Add deprecation notice for UM disabled mode (#6367)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user