Skip to content
Snippets Groups Projects
Commit 95a48e3a authored by sandeepsajan0's avatar sandeepsajan0
Browse files

enhance: Use is_apply_staff in replacement of is_staff for users

parent e181ebad
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div> <div>
<h5 class="determination-outcome">Determination: {{ determination.get_outcome_display }}</h5> <h5 class="determination-outcome">Determination: {{ determination.get_outcome_display }}</h5>
</div> </div>
{% if request.user.is_staff %} {% if request.user.is_apply_staff %}
<div> <div>
<a class="link link--edit-determination is-active" href="{% url 'apply:submissions:determinations:edit' submission_pk=determination.submission.id pk=determination.id %}"> <a class="link link--edit-determination is-active" href="{% url 'apply:submissions:determinations:edit' submission_pk=determination.submission.id pk=determination.id %}">
Edit Edit
......
...@@ -1008,7 +1008,7 @@ class AssignedReviewersQuerySet(models.QuerySet): ...@@ -1008,7 +1008,7 @@ class AssignedReviewersQuerySet(models.QuerySet):
else: else:
groups = {REVIEWER_GROUP_NAME} groups = {REVIEWER_GROUP_NAME}
elif not groups: elif not groups:
if reviewer.is_staff or reviewer.is_superuser: if reviewer.is_apply_staff:
groups = {STAFF_GROUP_NAME} groups = {STAFF_GROUP_NAME}
else: else:
groups = {REVIEWER_GROUP_NAME} groups = {REVIEWER_GROUP_NAME}
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
{% user_can_upload_contract object request.user as can_upload_contract %} {% user_can_upload_contract object request.user as can_upload_contract %}
{% if can_upload_contract %} {% if can_upload_contract %}
<div class="modal" id="upload-contract"> <div class="modal" id="upload-contract">
{% if not user.is_staff %} {% if not user.is_apply_staff %}
<h4 class="modal__header-bar">Upload Signed Contract</h4> <h4 class="modal__header-bar">Upload Signed Contract</h4>
{% else %} {% else %}
<h4 class="modal__header-bar">Upload Contract</h4> <h4 class="modal__header-bar">Upload Contract</h4>
......
...@@ -10,7 +10,7 @@ def user_has_approved(project, user): ...@@ -10,7 +10,7 @@ def user_has_approved(project, user):
@register.simple_tag @register.simple_tag
def can_send_for_approval(project, user): def can_send_for_approval(project, user):
return user.is_staff and project.can_send_for_approval return user.is_apply_staff and project.can_send_for_approval
@register.simple_tag @register.simple_tag
......
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