From 1d7d2a34fb3a7322158284e90beaa2b82505884b Mon Sep 17 00:00:00 2001 From: hurkicorgi Date: Mon, 13 Apr 2026 06:55:41 -0600 Subject: [PATCH] Hide add-OP form for non-superadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PlayerManager no longer renders the "Add player" input + button when a regular admin is viewing the Ops tab — the read-only banner remains so they understand why. Co-Authored-By: Claude Opus 4.6 (1M context) --- components/PlayerManager.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/PlayerManager.tsx b/components/PlayerManager.tsx index 956ce58..40ff988 100644 --- a/components/PlayerManager.tsx +++ b/components/PlayerManager.tsx @@ -162,7 +162,8 @@ export function PlayerManager() { ))} - {/* Add player input */} + {/* Add player input — hidden on Ops tab for non-superadmin */} + {!(tab === "ops" && !isSuperadmin) && (
+ )}