Skip to content
Snippets Groups Projects
Commit eaf33e54 authored by Valentin Rigal's avatar Valentin Rigal Committed by ml bonhomme
Browse files

Avoid triggering a 403 when retrying a process with a guest access

parent f052a27f
No related branches found
No related tags found
1 merge request!1681Avoid triggering a 403 when retrying a process with a guest access
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment