From 0c1666daa222fb05713d7ffa128a67e9ddd97b67 Mon Sep 17 00:00:00 2001 From: lhardt <22939160+lhardt@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:09:34 -0300 Subject: [PATCH] fix(auth): Inherit 'none' Authentication from Folder --- packages/bruno-app/src/utils/auth/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/utils/auth/index.js b/packages/bruno-app/src/utils/auth/index.js index fa23a1fc99d..7d74d9b53bc 100644 --- a/packages/bruno-app/src/utils/auth/index.js +++ b/packages/bruno-app/src/utils/auth/index.js @@ -26,12 +26,12 @@ export const resolveInheritedAuth = (item, collection) => { const collectionAuth = get(collectionRoot, 'request.auth', { mode: 'none' }); let effectiveAuth = collectionAuth; - // Walk ancestor folders from deepest up; pick the first one with a concrete auth mode (skip 'none'/'inherit'). + // Walk ancestor folders from deepest up; pick the first one with a concrete auth mode (skip 'inherit'). for (let idx = requestTreePath.length - 1; idx >= 0; idx--) { const i = requestTreePath[idx]; if (i.type === 'folder') { const folderAuth = i?.draft ? get(i, 'draft.request.auth') : get(i, 'root.request.auth'); - if (folderAuth && folderAuth.mode && folderAuth.mode !== 'none' && folderAuth.mode !== 'inherit') { + if (folderAuth && folderAuth.mode && folderAuth.mode !== 'inherit') { effectiveAuth = folderAuth; break; }