From 6c172ed09562d8138f8b68ec762200bbf936632a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 28 Nov 2025 14:46:21 -0600 Subject: [PATCH] remove incorrect constraint for viewer as username should be able to change anyone's role other than admin --- web/src/views/settings/AuthenticationView.tsx | 53 +++++++++---------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/web/src/views/settings/AuthenticationView.tsx b/web/src/views/settings/AuthenticationView.tsx index 19f157b46..124348813 100644 --- a/web/src/views/settings/AuthenticationView.tsx +++ b/web/src/views/settings/AuthenticationView.tsx @@ -478,33 +478,32 @@ export default function AuthenticationView({
- {user.username !== "admin" && - user.username !== "viewer" && ( - - - - - -

{t("users.table.changeRole")}

-
-
- )} + {user.username !== "admin" && ( + + + + + +

{t("users.table.changeRole")}

+
+
+ )}