fix(backend): Bugs omtrent leerpad-endpoints opgelost

This commit is contained in:
Gerald Schmittinger 2025-05-13 01:02:53 +02:00
parent 6929288554
commit 1a768fedcc
6 changed files with 12 additions and 12 deletions

View file

@ -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);
});