From 74fe9fc9450d7c53565af69edc32f1faa9cd45c5 Mon Sep 17 00:00:00 2001 From: Nicolas Drolet Date: Mon, 29 Dec 2025 15:07:30 -0500 Subject: [PATCH] debug(module-access): improve error logging to figure out why access module guard is firing 403 errors. --- src/common/guards/modules.guard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/guards/modules.guard.ts b/src/common/guards/modules.guard.ts index 936de2c..f8f984f 100644 --- a/src/common/guards/modules.guard.ts +++ b/src/common/guards/modules.guard.ts @@ -36,7 +36,7 @@ export class ModulesGuard implements CanActivate { for (const module of requiredModules) { if (!user.user_module_access.includes(module)) { throw new ForbiddenException( - `This account does not have required access to: ${module}.`, + `This account does not have required access to: ${module}. current user modules: ${user.user_module_access} , required modules: ${requiredModules}`, ); } }