diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 77c90aeee8..34d0404fcd 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -161,12 +161,16 @@ const menuDef = $computed(() => [ }, ] : []), - { - type: "button", - icon: "ph-list-magnifying-glass ph-bold ph-lg", - text: i18n.ts.indexPosts, - action: indexPosts, - }, + ...($i.isAdmin + ? [ + { + type: "button", + icon: "ph-list-magnifying-glass ph-bold ph-lg", + text: i18n.ts.indexPosts, + action: indexPosts, + }, + ] + : []), ], }, {