From b77e545159c719a8bdfda236180c450872ae1503 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 31 Jul 2023 14:36:35 +0100 Subject: [PATCH] chore: update perms --- components/common/NavigationLinks.tsx | 14 +++++++------- lib/accessPermissions.ts | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/components/common/NavigationLinks.tsx b/components/common/NavigationLinks.tsx index 7f90b0a..3391961 100644 --- a/components/common/NavigationLinks.tsx +++ b/components/common/NavigationLinks.tsx @@ -25,19 +25,19 @@ export function NavigationLinks() { href="/panel/search" > - - - - */} + */} + + + {/*> = { }; function hasPermission(email: string, permission: Permission) { + if (email === "insert@revolt.chat") return true; + const segments = permission.split("/"); while (segments.length) { if (ACL[email].has(segments.join("/") as Permission)) {