diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py index 1bff343d0b8126220e8c634cc4ef9e8e49b8e9f6..3e8adb94f894dae89fdaaa3c54ebb34dc1c4b500 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 @@ -1210,7 +1210,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' @@ -1224,7 +1224,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