From 72fd343366b269db7994d0074bb6c93202006479 Mon Sep 17 00:00:00 2001 From: benzekrimaha <144012792+benzekrimaha@users.noreply.github.com> Date: Tue, 7 Nov 2023 09:00:24 +0100 Subject: [PATCH] Update lib/api/api.js Co-authored-by: Jonathan Gramain --- lib/api/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/api.js b/lib/api/api.js index 0547ac8d45..c326d0ac56 100644 --- a/lib/api/api.js +++ b/lib/api/api.js @@ -162,7 +162,8 @@ const api = { // Any explicit deny rejects the current API call log.trace('authorization denial from Vault'); return errors.AccessDenied; - } else if (authResults[i].isAllowed) { + } + if (authResults[i].isAllowed) { // If the action is allowed, the result is not implicit // Deny. isImplicitDeny[authResults[i].action] = false;