SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit f1858a37 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Change entry check in `SubmissionQuerySet.in_pool` manager

parent 394495ae
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,7 @@ class SubmissionQuerySet(models.QuerySet): ...@@ -176,7 +176,7 @@ class SubmissionQuerySet(models.QuerySet):
Finally, filter out the COI. Finally, filter out the COI.
""" """
if not (hasattr(user, "contributor") and if not (hasattr(user, "contributor") and
user.has_perm("scipost.can_view_pool")): (user.contributor.is_ed_admin or user.contributor.is_active_fellow)):
return self.none() return self.none()
qs = self qs = self
......
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