From ee4ddabc6ba278fe8e16c1d3154fa0367a1ec575 Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 17 Nov 2023 09:17:56 +0000 Subject: [PATCH] fix: anyone (not only the owner) can press the edit button of an album --- packages/client/src/pages/gallery/post.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/client/src/pages/gallery/post.vue b/packages/client/src/pages/gallery/post.vue index 78f497a82..f34fc5058 100644 --- a/packages/client/src/pages/gallery/post.vue +++ b/packages/client/src/pages/gallery/post.vue @@ -229,14 +229,7 @@ function edit() { watch(() => props.postId, fetchPost, { immediate: true }); -const headerActions = computed(() => [ - { - icon: `${icon("ph-pencil")}`, - text: i18n.ts.edit, - handler: edit, - }, -]); - +const headerActions = computed(() => []); const headerTabs = computed(() => []); definePageMetadata(