Make edit buttons hidden when not authorized

This commit is contained in:
Jai A
2020-10-23 19:27:04 -07:00
parent 7b4398dfee
commit 5c644b31ca
2 changed files with 15 additions and 2 deletions
+8 -1
View File
@@ -180,7 +180,14 @@
</button>
</div>
</Popup>
<button class="default-button" @click="showPopup = !showPopup">
<button
v-if="
this.$auth.loggedIn &&
members.find((x) => x.user_id === this.$auth.user.id)
"
class="default-button"
@click="showPopup = !showPopup"
>
New Version
</button>
</ModPage>