Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
6b384397
Commit
6b384397
authored
3 years ago
by
Fredrik Jonsson
Browse files
Options
Downloads
Patches
Plain Diff
Give finance and contracting roles access to the submission detail views.
parent
b03b3a6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hypha/apply/funds/views.py
+3
-3
3 additions, 3 deletions
hypha/apply/funds/views.py
with
3 additions
and
3 deletions
hypha/apply/funds/views.py
+
3
−
3
View file @
6b384397
...
@@ -50,7 +50,7 @@ from hypha.apply.projects.models import Project
...
@@ -50,7 +50,7 @@ from hypha.apply.projects.models import Project
from
hypha.apply.review.models
import
Review
from
hypha.apply.review.models
import
Review
from
hypha.apply.review.views
import
ReviewContextMixin
from
hypha.apply.review.views
import
ReviewContextMixin
from
hypha.apply.stream_forms.blocks
import
GroupToggleBlock
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.models
import
PDFPageSettings
from
hypha.apply.utils.pdfs
import
draw_submission_content
,
make_pdf
from
hypha.apply.utils.pdfs
import
draw_submission_content
,
make_pdf
from
hypha.apply.utils.storage
import
PrivateMediaView
from
hypha.apply.utils.storage
import
PrivateMediaView
...
@@ -1205,7 +1205,7 @@ class SubmissionPrivateMediaView(UserPassesTestMixin, PrivateMediaView):
...
@@ -1205,7 +1205,7 @@ class SubmissionPrivateMediaView(UserPassesTestMixin, PrivateMediaView):
return
is_user_has_access_to_view_submission
(
self
.
request
.
user
,
self
.
submission
)
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
):
class
SubmissionDetailSimplifiedView
(
DetailView
):
model
=
ApplicationSubmission
model
=
ApplicationSubmission
template_name_suffix
=
'
_simplified_detail
'
template_name_suffix
=
'
_simplified_detail
'
...
@@ -1219,7 +1219,7 @@ class SubmissionDetailSimplifiedView(DetailView):
...
@@ -1219,7 +1219,7 @@ class SubmissionDetailSimplifiedView(DetailView):
return
obj
return
obj
@method_decorator
(
staff_required
,
name
=
'
dispatch
'
)
@method_decorator
(
staff_
or_finance_
required
,
name
=
'
dispatch
'
)
class
SubmissionDetailPDFView
(
SingleObjectMixin
,
View
):
class
SubmissionDetailPDFView
(
SingleObjectMixin
,
View
):
model
=
ApplicationSubmission
model
=
ApplicationSubmission
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment