diff --git a/webui/src/Components/Group.jsx b/webui/src/Components/Group.jsx index 68c7c53..b1b1f76 100644 --- a/webui/src/Components/Group.jsx +++ b/webui/src/Components/Group.jsx @@ -20,7 +20,7 @@ function Group({id, name, permissions}) { const noLights = ready && lights.length === 0; const hasLights = ready && lights.length > 0; - if (id === 0 && noLights) { + if (id === 0 && noLights && user.name !== "Admin") { return <>; } diff --git a/webui/src/Components/Pages/AdminPage.jsx b/webui/src/Components/Pages/AdminPage.jsx index 8ebdf68..30897f4 100644 --- a/webui/src/Components/Pages/AdminPage.jsx +++ b/webui/src/Components/Pages/AdminPage.jsx @@ -1,13 +1,7 @@ import React from "react"; import Bridges from "../Bridges"; -import useAuth from "../../Hooks/auth"; function AdminPage() { - const {user} = useAuth(); - if (user.name === "Admin") { - return <>; - } - return (