Skip to content

Commit

Permalink
Merge ac0f140 into fcdbd8c
Browse files Browse the repository at this point in the history
  • Loading branch information
eheinrich committed Sep 30, 2019
2 parents fcdbd8c + ac0f140 commit 8b54f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion observation_portal/requestgroups/viewsets.py
Expand Up @@ -258,7 +258,7 @@ def perform_create(self, serializer):
serializer.save(author=self.request.user)

def get_queryset(self):
if self.request.user.is_staff:
if self.request.user.is_staff and self.request.user.profile.staff_view:
return DraftRequestGroup.objects.all()
elif self.request.user.is_authenticated:
return DraftRequestGroup.objects.filter(proposal__in=self.request.user.proposal_set.all())
Expand Down

0 comments on commit 8b54f87

Please sign in to comment.