allow admins to always leave rover canleaverover always admins
Container image / image (push) Failing after 1m2s

This commit is contained in:
legop3
2026-10-31 13:45:12 -04:00
parent 52c171c256
commit 1976377235
@@ -174,6 +174,8 @@ function createRoverLifecycle(deps) {
function canLeaveCurrentRover(socket, options = {}) {
const currentId = getPrimaryRoverForSocket(socket.id);
// Admins, including lockdown admins, can always leave their current rover.
if (isAdmin(socket)) return { ok: true, currentId };
/*
Leaving a rover is only risky when this socket is the last person attached
to an undocked rover. The same rule is used for rover-to-rover switching