From eaf33e5466dace1fa93e73dc773dca593752262c Mon Sep 17 00:00:00 2001 From: Valentin Rigal <rigal@teklia.com> Date: Tue, 7 May 2024 12:49:34 +0000 Subject: [PATCH] Avoid triggering a 403 when retrying a process with a guest access --- src/components/Process/Status/Status.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Process/Status/Status.vue b/src/components/Process/Status/Status.vue index c962c4482..3a4fef6a6 100644 --- a/src/components/Process/Status/Status.vue +++ b/src/components/Process/Status/Status.vue @@ -206,7 +206,7 @@ export default { ...mapMutations('process', ['setProcesses', 'stopPolling']), ...mapMutations('notifications', ['notify']), async retry () { - if (!this.process.id || this.loading) return + if (!this.hasAdminAccess || !this.process.id || this.loading) return try { await this.$store.dispatch('process/retryProcess', this.process.id) await this.$store.dispatch('process/retrieveProcess', this.process.id) -- GitLab