fixed unallowed cards access for free users

This commit is contained in:
2021-09-03 10:39:00 +02:00
parent 19cb887ee6
commit 9b49e1bf20
11 changed files with 19 additions and 14 deletions

View File

@ -3,11 +3,11 @@
<header
@click.prevent="openModalCard"
>
<h1 v-if="isloggedin">{{ item.title }}</h1>
<h1 v-if="hasDBAccess">{{ item.title }}</h1>
<h4>{{ item.short_description }}</h4>
<span v-if="isloggedin" class="ref">{{ item.reference }}</span>
<span v-if="hasDBAccess" class="ref">{{ item.reference }}</span>
</header>
<nav class="tools" v-if="isloggedin">
<nav class="tools" v-if="hasDBAccess">
<section class="tool flags">
<span class="btn mdi mdi-folder-outline"/>
<div class="tool-content">
@ -117,7 +117,8 @@ export default {
computed: {
...mapState({
flagcolls: state => state.User.flagcolls,
isloggedin: state => state.User.isloggedin
isloggedin: state => state.User.isloggedin,
hasDBAccess: state => state.User.hasDBAccess
}),
collsLength() {
return Object.keys(this.flagcolls).length
@ -192,8 +193,8 @@ export default {
// this.lightbox_index = index
// },
openModalCard (e) {
console.log('openModalCard', this.isLoggedin)
if (this.isloggedin) {
console.log('openModalCard', this.hasDBAccess)
if (this.hasDBAccess) {
this.$modal.show(
ModalCard,
{