mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
committed by
कारतोफ्फेलस्क्रिप्ट™
parent
a45a2c8c41
commit
8c008f5d22
@@ -416,12 +416,6 @@ export const routes = [
|
||||
allow: {
|
||||
role: [ROLE.Default],
|
||||
},
|
||||
deny: {
|
||||
shouldDeny: () => {
|
||||
const settingsStore = useSettingsStore();
|
||||
return settingsStore.isUserManagementEnabled === false;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -537,17 +531,7 @@ export const routes = [
|
||||
},
|
||||
permissions: {
|
||||
allow: {
|
||||
role: [ROLE.Default, ROLE.Owner],
|
||||
},
|
||||
deny: {
|
||||
shouldDeny: () => {
|
||||
const settingsStore = useSettingsStore();
|
||||
|
||||
return (
|
||||
settingsStore.isUserManagementEnabled === false &&
|
||||
!(settingsStore.isCloudDeployment || settingsStore.isDesktopDeployment)
|
||||
);
|
||||
},
|
||||
role: [ROLE.Owner],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -645,7 +629,7 @@ export const routes = [
|
||||
},
|
||||
permissions: {
|
||||
allow: {
|
||||
role: [ROLE.Default, ROLE.Owner],
|
||||
role: [ROLE.Owner],
|
||||
},
|
||||
deny: {
|
||||
role: [ROLE.Member],
|
||||
@@ -665,7 +649,7 @@ export const routes = [
|
||||
},
|
||||
permissions: {
|
||||
allow: {
|
||||
role: [ROLE.Default, ROLE.Owner],
|
||||
role: [ROLE.Owner],
|
||||
},
|
||||
deny: {
|
||||
shouldDeny: () => {
|
||||
@@ -707,7 +691,7 @@ export const routes = [
|
||||
meta: {
|
||||
permissions: {
|
||||
allow: {
|
||||
role: [ROLE.Default, ROLE.Owner],
|
||||
role: [ROLE.Owner],
|
||||
},
|
||||
deny: {
|
||||
role: [ROLE.Member],
|
||||
|
||||
Reference in New Issue
Block a user