From 6b3843970cd282e7322de5f5d43b10c544932e79 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Mon, 13 Dec 2021 15:11:44 +0100 Subject: [PATCH] Give finance and contracting roles access to the submission detail views. --- hypha/apply/funds/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py index 84f033ac1..ad9c96285 100644 --- a/hypha/apply/funds/views.py +++ b/hypha/apply/funds/views.py @@ -50,7 +50,7 @@ from hypha.apply.projects.models import Project from hypha.apply.review.models import Review from hypha.apply.review.views import ReviewContextMixin from hypha.apply.stream_forms.blocks import GroupToggleBlock -from hypha.apply.users.decorators import staff_required +from hypha.apply.users.decorators import staff_or_finance_required, staff_required from hypha.apply.utils.models import PDFPageSettings from hypha.apply.utils.pdfs import draw_submission_content, make_pdf from hypha.apply.utils.storage import PrivateMediaView @@ -1205,7 +1205,7 @@ class SubmissionPrivateMediaView(UserPassesTestMixin, PrivateMediaView): return is_user_has_access_to_view_submission(self.request.user, self.submission) -@method_decorator(staff_required, name='dispatch') +@method_decorator(staff_or_finance_required, name='dispatch') class SubmissionDetailSimplifiedView(DetailView): model = ApplicationSubmission template_name_suffix = '_simplified_detail' @@ -1219,7 +1219,7 @@ class SubmissionDetailSimplifiedView(DetailView): return obj -@method_decorator(staff_required, name='dispatch') +@method_decorator(staff_or_finance_required, name='dispatch') class SubmissionDetailPDFView(SingleObjectMixin, View): model = ApplicationSubmission -- GitLab