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