Skip to content

Commit

Permalink
fix(rooms.js): remove creator check in administrator deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Nov 18, 2024
1 parent a2f5663 commit 223977e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/routes/rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,6 @@ router.delete("/:roomCode/administrators/:userId",
// Find room
const room = await Room.findOne({
code: roomCode,
creator: userId,
administrators: {
$in: [userIdTarget],
},
Expand Down

0 comments on commit 223977e

Please sign in to comment.