bugfix socket for board recents

merge-requests/218/head
Thomas Lynch 4 years ago
parent 9c8e842913
commit 57bb23ae55
  1. 4
      socketio.js

@ -42,9 +42,9 @@ module.exports = {
|| roomName === 'manage-recent-raw') { || roomName === 'manage-recent-raw') {
requiredAuth = 3; //board mod minimum requiredAuth = 3; //board mod minimum
if (user && authLevel === 4) { if (user && authLevel === 4) {
if (user.ownedBoards.includes(board)) { if (user.ownedBoards.includes(roomBoard)) {
authLevel = 2; //user is BO authLevel = 2; //user is BO
} else if (user.modBoards.includes(board)) { } else if (user.modBoards.includes(roomBoard)) {
authLevel = 3; //user is mod authLevel = 3; //user is mod
} }
} }

Loading…
Cancel
Save