- fixed server versioni precedenti (getEnableTokenExpiredByIdApp dava errore perchè confpages non esiste nelle vecchie versioni ...)
This commit is contained in:
@@ -810,7 +810,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
// Calling the Server to Save in the MongoDB the Subscriber
|
||||
saveNewSubscriptionToServer(newSub: any) {
|
||||
console.log('saveNewSubscriptionToServer')
|
||||
// console.log('saveNewSubscriptionToServer')
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
@@ -862,8 +862,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
this.wasAlreadySubscribed = true
|
||||
this.wasAlreadySubOnDb = true
|
||||
|
||||
if (res)
|
||||
console.log('saveNewSubscriptionToServer: OK')
|
||||
// if (res)
|
||||
// console.log('saveNewSubscriptionToServer: OK')
|
||||
|
||||
tools.localStSetItem(toolsext.localStorage.wasAlreadySubOnDb, String(this.wasAlreadySubOnDb))
|
||||
})
|
||||
@@ -1635,13 +1635,13 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
}
|
||||
|
||||
// const isLogged = localStorage.getItem(toolsext.localStorage.username)
|
||||
console.log('isLogged', isLogged)
|
||||
// console.log('isLogged', isLogged)
|
||||
|
||||
// calendarStore.editable = userStore.isAdmin || userStore.isManager || userStore.isFacilitatore
|
||||
if (res.data.myuser === null || (res.data.myuser.idapp !== process.env.APP_ID)) {
|
||||
if (isLogged) {
|
||||
// Fai Logout
|
||||
console.log('Fai Logout', 'isLogged', isLogged)
|
||||
// console.log('Fai Logout', 'isLogged', isLogged)
|
||||
userStore.logout()
|
||||
this.rightDrawerOpen = true
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user