Skip to content

Commit

Permalink
Merge pull request #2674 from HyphaApp/enhancement/finance_access_sub…
Browse files Browse the repository at this point in the history
…mission_detail

Give finance and contracting roles access to the submission detail views
  • Loading branch information
frjo authored Jul 14, 2022
2 parents 2066e88 + 6b38439 commit d9f9cc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hypha/apply/funds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
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
Expand Down Expand Up @@ -1210,7 +1210,7 @@ def test_func(self):
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'
Expand All @@ -1224,7 +1224,7 @@ def get_object(self, queryset=None):
return obj


@method_decorator(staff_required, name='dispatch')
@method_decorator(staff_or_finance_required, name='dispatch')
class SubmissionDetailPDFView(SingleObjectMixin, View):
model = ApplicationSubmission

Expand Down

0 comments on commit d9f9cc3

Please sign in to comment.