small fixes

This commit is contained in:
Laurin
2022-06-03 22:25:21 +02:00
parent 0f0da062c6
commit b3a1ec5fa5
4 changed files with 22 additions and 29 deletions
+2 -4
View File
@@ -7,15 +7,13 @@ const router = Express.Router();
//TO DO: maybe transfer getRolesForTeam to team router -> Seconded
router.get<"team/:teamPid/", { teamPid: string }>(
"team/:teamPid/",
requireAuthentication,
requireConfiguredAuthentication({ optional: true, type: { admin: true, teamleader: true } }),
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
getRolesForTeam
);
router.put<"/:pid/participant", { pid: string }>(
"/:pid/participant",
requireAuthentication,
requireConfiguredAuthentication({ optional: true, type: { admin: true, teamleader: true } }),
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
assignParticipantToRole
);