low voltage anode...

This commit is contained in:
legop3
2025-11-29 22:24:57 -05:00
parent 02b72cbce7
commit a29753ef86
4 changed files with 10 additions and 24 deletions
+3 -2
View File
@@ -86,10 +86,11 @@ io.on('connection', (socket) => {
throw new Error('video source required');
}
if (target.type === 'rover') {
if (!roverManager.rovers.has(target.id)) {
const baseId = target.id.endsWith('-audio') ? target.id.slice(0, -6) : target.id;
if (!roverManager.rovers.has(baseId)) {
throw new Error('Rover offline');
}
if (!canViewRover(socket, target.id)) {
if (!canViewRover(socket, baseId)) {
throw new Error('Not authorized for video');
}
} else if (target.type === 'room') {