Skip to content

Commit

Permalink
Fixed convo exploit part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-eason committed Jan 13, 2024
1 parent 2b04cc2 commit 6aeec0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default class ConversationService extends EventEmitter {
throw new ValidationError(`The conversation requested does not exist.`);
}

if (convo.participants.find(p => p.toString() === player._id.toString() == null)) {
if (convo.participants.find(p => p.toString() === player._id.toString()) == null) {
throw new ValidationError(`You are not participating in this conversation.`);
}

Expand Down

0 comments on commit 6aeec0d

Please sign in to comment.