mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
oopsie
This commit is contained in:
@@ -62,7 +62,8 @@ function canView(socket) {
|
|||||||
return isLockdownAdmin(socket);
|
return isLockdownAdmin(socket);
|
||||||
}
|
}
|
||||||
if (mode === MODES.ADMIN) {
|
if (mode === MODES.ADMIN) {
|
||||||
return isAdmin(socket);
|
const role = getRole(socket);
|
||||||
|
return role === 'spectator' || isAdmin(socket);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user