only show game actions if you're board owner

This commit is contained in:
Gamebrary 2021-02-03 15:40:47 -07:00
parent 03fb73c173
commit 7ffbe6b909

View file

@ -31,7 +31,7 @@
</template>
<b-dropdown
v-if="user"
v-if="user && user.uid === board.owner"
right
no-caret
:variant="nightMode ? 'dark' : 'light'"
@ -232,7 +232,7 @@ export default {
computed: {
// TODO: rename gameModalData
...mapState(['gameModalData', 'games', 'platform', 'progresses', 'tags', 'user']),
...mapState(['board', 'gameModalData', 'games', 'platform', 'progresses', 'tags', 'user']),
...mapGetters(['nightMode']),
hasMultipleGames() {