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) {