From 02b1b6f62f648a9ace537cc4be3624a6ee853b99 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sat, 13 Sep 2025 14:17:26 +0200 Subject: [PATCH] Fix jwt-token --- server/test-rbac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/test-rbac.js b/server/test-rbac.js index 19e4358..82549f1 100644 --- a/server/test-rbac.js +++ b/server/test-rbac.js @@ -256,7 +256,7 @@ testScenarios.forEach(scenario => { tests.forEach(test => { totalTests++; - const result = hasPermission(scenario.user, test.permission); + const result = hasPermission(scenario.user.role, test.permission); const passed = result === test.expected; if (passed) {