From a92b950ff2d53021bd4e53e532f23e3cb30fc918 Mon Sep 17 00:00:00 2001 From: Valimp Date: Fri, 8 Mar 2024 11:22:13 +0100 Subject: [PATCH] fix: give access to moderator only --- src/App.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 31c92d7..90cdff6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,6 +13,11 @@ import LayoutMenu from "../components/Layouts/LayoutMenu.tsx"; import LoginContext from "./contexts/login.tsx"; import NotFound from "../pages/NotFound.tsx"; +const MODERATORS = [ + "valimp", + "alex-off", +] + export default function App() { // turn in to true to test the moderation page - it will always be logged in @@ -88,12 +93,14 @@ export default function App() { refresh(); }, [refresh]); + const showTickets = MODERATORS.includes(userState.userName); + return ( } /> - : } /> + : } /> } /> } />