Fix jwt-token

This commit is contained in:
2025-09-13 14:17:26 +02:00
parent 097c0f074c
commit 02b1b6f62f

View File

@@ -256,7 +256,7 @@ testScenarios.forEach(scenario => {
tests.forEach(test => { tests.forEach(test => {
totalTests++; totalTests++;
const result = hasPermission(scenario.user, test.permission); const result = hasPermission(scenario.user.role, test.permission);
const passed = result === test.expected; const passed = result === test.expected;
if (passed) { if (passed) {