fix(backend): Bugs omtrent leerpad-endpoints opgelost
This commit is contained in:
parent
6929288554
commit
1a768fedcc
6 changed files with 12 additions and 12 deletions
|
@ -12,5 +12,5 @@ export const onlyAdminsForLearningObject = authorize(async (auth: Authentication
|
|||
language: language as Language,
|
||||
version: parseInt(version as string)
|
||||
});
|
||||
return auth.username in admins;
|
||||
return admins.includes(auth.username);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue