@ -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 <></>;
}
@ -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 (
<div>
<Bridges/>