Skip to content
Snippets Groups Projects
Commit bb5bd09f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'fix/celery-progress-save' into 'master'

Correctly save task status

See merge request !1267
parents 34f83571 2e42a0e8
No related branches found
No related tags found
1 merge request!1267Correctly save task status
Pipeline #133525 canceled
......@@ -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