mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(editor): Clean all instances of isDesktopDeployment (#10884)
This commit is contained in:
@@ -576,12 +576,8 @@ export const routes: RouteRecordRaw[] = [
|
||||
settingsView: SettingsSso,
|
||||
},
|
||||
meta: {
|
||||
middleware: ['authenticated', 'rbac', 'custom'],
|
||||
middleware: ['authenticated', 'rbac'],
|
||||
middlewareOptions: {
|
||||
custom: () => {
|
||||
const settingsStore = useSettingsStore();
|
||||
return !settingsStore.isDesktopDeployment;
|
||||
},
|
||||
rbac: {
|
||||
scope: 'saml:manage',
|
||||
},
|
||||
@@ -693,11 +689,7 @@ export const routes: RouteRecordRaw[] = [
|
||||
custom: () => {
|
||||
const settingsStore = useSettingsStore();
|
||||
const ssoStore = useSSOStore();
|
||||
return (
|
||||
ssoStore.isEnterpriseSamlEnabled &&
|
||||
!settingsStore.isCloudDeployment &&
|
||||
!settingsStore.isDesktopDeployment
|
||||
);
|
||||
return ssoStore.isEnterpriseSamlEnabled && !settingsStore.isCloudDeployment;
|
||||
},
|
||||
},
|
||||
telemetry: {
|
||||
|
||||
Reference in New Issue
Block a user