fix: moderators being unable to access emoji management page

This commit is contained in:
naskya 2024-01-06 00:03:10 +09:00
parent d12b7cb941
commit 01a1a58fa3
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -424,7 +424,8 @@ export const routes = [
{ {
path: "/admin/emojis", path: "/admin/emojis",
name: "emojis", name: "emojis",
component: isEmojiMod component:
isModerator || isEmojiMod
? page(() => import("./pages/admin/emojis.vue")) ? page(() => import("./pages/admin/emojis.vue"))
: page(() => import("./pages/not-found.vue")), : page(() => import("./pages/not-found.vue")),
}, },