From 01a1a58fa3d7a0383628466ec2b260ec47a71619 Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 6 Jan 2024 00:03:10 +0900 Subject: [PATCH] fix: moderators being unable to access emoji management page --- packages/client/src/router.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index befb59db..40c3bb8b 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -424,9 +424,10 @@ export const routes = [ { path: "/admin/emojis", name: "emojis", - component: isEmojiMod - ? page(() => import("./pages/admin/emojis.vue")) - : page(() => import("./pages/not-found.vue")), + component: + isModerator || isEmojiMod + ? page(() => import("./pages/admin/emojis.vue")) + : page(() => import("./pages/not-found.vue")), }, { path: "/admin",