From 41c632ccfa52ea901bd27b6bc72a0e05a85b5e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LAGACHE?= Date: Fri, 27 Feb 2026 09:53:24 +0100 Subject: [PATCH] Update auth.ts --- src/lib/auth/auth.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lib/auth/auth.ts b/src/lib/auth/auth.ts index eeb9f35f..83db23f5 100644 --- a/src/lib/auth/auth.ts +++ b/src/lib/auth/auth.ts @@ -200,20 +200,7 @@ export const auth = betterAuth({ if (roleMapStr) { const mappings = roleMapStr.split(",").map((m) => m.split(":")); for (const [group, role] of mappings) { - console.log( - "Checking role mapping:", - group.trim(), - "against user groups:", - userGroups, - ); - if (userGroups.includes(group.trim())) { - console.log( - "Role mapping matched for group:", - group.trim(), - "->", - role.trim(), - ); roleToAssign = role.trim(); break; }