Skip to content
Snippets Groups Projects
Commit c9b3c72a authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Allow reviewers access to applications they are assigned to

parent a36a98c1
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,11 @@ class SubmissionDetailView(ViewDispatcher):
admin_view = AdminSubmissionDetailView
applicant_view = ApplicantSubmissionDetailView
def admin_check(self, request):
if request.user.is_reviewer and self.object.has_permission_to_review(request.user):
return True
return super().admin_check(request)
@method_decorator(login_required, name='dispatch')
class SubmissionEditView(UpdateView):
......
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