backend: update role validation to include SPEAKER in participant middleware

This commit is contained in:
Carlos Santos 2025-08-07 19:08:39 +02:00
parent 169e99fbe5
commit 2ce58f08fd

View File

@ -106,7 +106,7 @@ export const withValidParticipantRole = async (req: Request, res: Response, next
}
// Validate the role against the ParticipantRole enum
const isRoleValid = role === ParticipantRole.MODERATOR || role === ParticipantRole.PUBLISHER;
const isRoleValid = role === ParticipantRole.MODERATOR || role === ParticipantRole.SPEAKER;
if (!isRoleValid) {
const error = errorInvalidParticipantRole();