Skip to content
Snippets Groups Projects
Verified Commit 2e42a0e8 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Correctly save task status

parent 34f83571
No related branches found
No related tags found
1 merge request!1267Correctly save task status
Pipeline #132146 failed
......@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Progress page didn't work properly.
`3.1`_ - 2022-05-30
-------------------
......
......@@ -88,7 +88,7 @@ class CeleryProgressFetchedMutation(graphene.Mutation):
celery_progress = graphene.Field(CeleryProgressType)
def mutate(root, info, task_id, **kwargs):
task = TaskUserAssignment.objects.filter(task_result__task_id=task_id)
task = TaskUserAssignment.objects.get(task_result__task_id=task_id)
if not info.context.user.has_perm("core.view_progress_rule", task):
return None
......
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