From 2746e61cb3c4a01092043aa990aa44a5a0be1af0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 2 May 2022 17:32:52 -0500 Subject: [PATCH] Fix:Authors card hide edit & search icon for users without edit permission #549 --- client/components/cards/AuthorCard.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/components/cards/AuthorCard.vue b/client/components/cards/AuthorCard.vue index b8106ce9..a9b41147 100644 --- a/client/components/cards/AuthorCard.vue +++ b/client/components/cards/AuthorCard.vue @@ -11,10 +11,10 @@ -
+
search
-
+
edit
@@ -65,6 +65,9 @@ export default { }, numBooks() { return this._author.numBooks || 0 + }, + userCanUpdate() { + return this.$store.getters['user/getUserCanUpdate'] } }, methods: {