From d4e78a666e10d84df20d6dfe978205cb4655ff1e Mon Sep 17 00:00:00 2001 From: zhangshun <453905631@qq.com> Date: Tue, 2 Jun 2026 10:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=8D=E7=99=BB=E5=BD=95=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=9D=83=E9=99=90=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/app/layout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/pages/app/layout.ts b/web/src/pages/app/layout.ts index f9cc8e9..bc481cf 100644 --- a/web/src/pages/app/layout.ts +++ b/web/src/pages/app/layout.ts @@ -10,6 +10,7 @@ export async function renderApp() { const currentUser = getCurrentUser(); const isAdmin = currentUser?.role === "admin"; const isFixedLogin = document.body.dataset.authMode === "fixed"; + const canManageUsers = isAdmin && !isFixedLogin; document.querySelector("#app")!.innerHTML = `
@@ -32,7 +33,7 @@ export async function renderApp() {
- ${isAdmin ? `` : ""} + ${canManageUsers ? `` : ""} ${isAdmin ? `` : ""} ${isAdmin ? `` : ""} ${isAdmin ? `` : ""}