mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
feat(core): Add LDAP support (#3835)
This commit is contained in:
@@ -74,6 +74,14 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
available: this.canAccessApiSettings(),
|
||||
activateOnRouteNames: [VIEWS.API_SETTINGS],
|
||||
},
|
||||
{
|
||||
id: 'settings-ldap',
|
||||
icon: 'network-wired',
|
||||
label: this.$locale.baseText('settings.ldap'),
|
||||
position: 'top',
|
||||
available: this.canAccessLdapSettings(),
|
||||
activateOnRouteNames: [VIEWS.LDAP_SETTINGS],
|
||||
},
|
||||
];
|
||||
|
||||
for (const item of this.settingsFakeDoorFeatures) {
|
||||
@@ -126,6 +134,9 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
canAccessApiSettings(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.API_SETTINGS);
|
||||
},
|
||||
canAccessLdapSettings(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.LDAP_SETTINGS);
|
||||
},
|
||||
canAccessLogStreamingSettings(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.LOG_STREAMING_SETTINGS);
|
||||
},
|
||||
@@ -155,6 +166,11 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
this.$router.push({ name: VIEWS.API_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-ldap':
|
||||
if (this.$router.currentRoute.name !== VIEWS.LDAP_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.LDAP_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-log-streaming':
|
||||
if (this.$router.currentRoute.name !== VIEWS.LOG_STREAMING_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.LOG_STREAMING_SETTINGS });
|
||||
|
||||
Reference in New Issue
Block a user