fix: moderators being unable to access emoji management page
This commit is contained in:
parent
d12b7cb941
commit
01a1a58fa3
1 changed files with 4 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue