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

@ -5,7 +5,7 @@ import qs from 'querystring-es3'
import materiauGQL from 'vuejs/api/gql/materiauflaglist.fragment.gql'
import router from 'vuejs/route' // this is not working
// import router from 'vuejs/route' // this is not working
export default {
namespaced: true,
@ -24,6 +24,7 @@ export default {
isAdmin: false,
isAdherent: false,
canSearch: false,
hasDBAccess: false,
roles: [],
flagcolls: false,
flagcollsLoadedItems: {},
@ -85,6 +86,9 @@ export default {
state.canSearch = true
state.isAdherent = true
}
if (state.isAdherent || state.isAdmin) {
state.hasDBAccess = true
}
},
setLoggedOut (state) {
console.log('setLoggedOut state', state)