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",