backend: update role validation to include SPEAKER in participant middleware
This commit is contained in:
parent
169e99fbe5
commit
2ce58f08fd
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user