Fix jwt-token
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user