Skip to content

Commit 7e01225

Browse files
Update auth-oidc-proxy/auth/index.mjs
Co-authored-by: Sascha Schwarze <[email protected]>
1 parent 346970a commit 7e01225

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

auth-oidc-proxy/auth/index.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ async function checkAuthz(req, res, next) {
240240
const userGroups = req.user[AUTHZ_GROUP_PROPERTY] || [];
241241
console.log(`${fn} checking whether at least one of the user.${AUTHZ_GROUP_PROPERTY} is allow listed.`);
242242

243-
let authorized = false;
244-
Array.isArray(userGroups) &&
243+
const authorized = Array.isArray(userGroups) &&
245244
userGroups.some((group) => {
246245
return AUTHZ_ALLOWED_GROUPS_LIST.includes(group);
247246
});

0 commit comments

Comments
 (0)