Skip to content
Snippets Groups Projects
Commit de510680 authored by Jesse Bickel's avatar Jesse Bickel
Browse files

Reviewers can View All reviews

Issue ots/clients/ardc/hypha-tracker#369: Give Reviewers the ability
    to view all reviews
parent 28d1566e
No related branches found
No related tags found
1 merge request!115Reviewers can View All reviews
......@@ -23,6 +23,9 @@
<div class="wrapper wrapper--sidebar-buttons">
{% include 'review/includes/review_button.html' with submission=object class="button--half-width" %}
{% if object.reviews.exists %}
<a href="{% url 'apply:submissions:reviews:list' submission_pk=object.id %}" class="button button--white button--half-width">{% trans "View all" %}</a>
{% endif %}
</div>
</div>
{% endblock %}
......
......@@ -27,7 +27,7 @@ from hypha.apply.review.forms import ReviewModelForm, ReviewOpinionForm
from hypha.apply.stream_forms.models import BaseStreamForm
from hypha.apply.todo.options import REVIEW_DRAFT
from hypha.apply.todo.views import add_task_to_user, remove_tasks_for_user
from hypha.apply.users.decorators import staff_required
from hypha.apply.users.decorators import staff_or_reviewer_required
from hypha.apply.users.roles import REVIEWER_GROUP_NAME
from hypha.apply.utils.image import generate_image_tag
from hypha.apply.utils.models import SubmissionsDetailsSettings
......@@ -457,7 +457,7 @@ class ReviewDetailView(DetailView):
return view(request, *args, **kwargs)
@method_decorator(staff_required, name="dispatch")
@method_decorator(staff_or_reviewer_required, name="dispatch")
class ReviewListView(ListView):
model = Review
......
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