diff --git a/pages/admin/gestion-admin/index.vue b/pages/admin/gestion-admin/index.vue index e65d615..ea6e2c7 100644 --- a/pages/admin/gestion-admin/index.vue +++ b/pages/admin/gestion-admin/index.vue @@ -217,7 +217,7 @@ onMounted(async () => { if (response) { if (response.body[0].ReadListAdmin !== 1) { - return router.push("/admin/dashboard") + router.push("/admin/dashboard") } } else { console.error("Error getPermAdmin:", response.statusText) diff --git a/pages/admin/gestion-crenaux/index.vue b/pages/admin/gestion-crenaux/index.vue index a0d2e51..33696a5 100644 --- a/pages/admin/gestion-crenaux/index.vue +++ b/pages/admin/gestion-crenaux/index.vue @@ -233,7 +233,7 @@ onMounted(async () => { if (response) { if (response.body[0].ReadListSeance !== 1) { - return router.push("/admin/dashboard") + router.push("/admin/dashboard") } } else { console.error("Error getPermAdmin:", response.statusText) diff --git a/pages/admin/gestion-utilisateur/index.vue b/pages/admin/gestion-utilisateur/index.vue index e7d5fde..20dc1bc 100644 --- a/pages/admin/gestion-utilisateur/index.vue +++ b/pages/admin/gestion-utilisateur/index.vue @@ -133,7 +133,7 @@ onMounted(async () => { if (response) { if (response.body[0].ReadListUtilisateur !== 1) { - return router.push("/admin/dashboard") + router.push("/admin/dashboard") } } else { console.error("Error getPermAdmin:", response.statusText) diff --git a/pages/admin/liste-grimpeurs/index.vue b/pages/admin/liste-grimpeurs/index.vue index 4c943fc..8ba3b31 100644 --- a/pages/admin/liste-grimpeurs/index.vue +++ b/pages/admin/liste-grimpeurs/index.vue @@ -143,7 +143,7 @@ onMounted(async () => { if (response) { if (response.body[0].ReadListGrimpeur !== 1) { - return router.push("/admin/dashboard") + router.push("/admin/dashboard") } } else { console.error("Error getPermAdmin:", response.statusText)