fixed unallowed cards access for free users
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user