diff --git a/src/components/lists/ShowList.vue b/src/components/lists/ShowList.vue
index a8220fb5..ef24f398 100644
--- a/src/components/lists/ShowList.vue
+++ b/src/components/lists/ShowList.vue
@@ -26,6 +26,7 @@
import ListModel from '../../models/list'
import ListService from '../../services/list'
+ import authType from '../../models/authTypes'
export default {
data() {
@@ -41,12 +42,12 @@
},
beforeMount() {
// Check if the user is already logged in, if so, redirect him to the homepage
- if (!auth.user.authenticated && !auth.user.isLinkShareAuth) {
+ if (!auth.user.authenticated && auth.user.infos.type !== authType.LINK_SHARE) {
router.push({name: 'home'})
}
// If the type is invalid, redirect the user
- if (this.$route.params.type !== 'gantt' && this.$route.params.type !== '') {
+ if (auth.user.authenticated && auth.user.infos.type !== authType.LINK_SHARE && this.$route.params.type !== 'gantt' && this.$route.params.type !== '') {
router.push({name: 'showList', params: { id: this.$route.params.id }})
}
},
diff --git a/src/components/tasks/ShowListTasks.vue b/src/components/tasks/ShowListTasks.vue
index 955fc7c6..a58c1bd4 100644
--- a/src/components/tasks/ShowListTasks.vue
+++ b/src/components/tasks/ShowListTasks.vue
@@ -83,8 +83,6 @@