From 2ddc6216a55248f49a2f73b90eb20e97aa4725b9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 9 Oct 2019 10:56:08 +0100 Subject: [PATCH] Let any user see the uploads page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even if you can’t send messages you might still want to see the messages that other people have sent. --- app/main/views/uploads.py | 2 +- app/templates/main_nav.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/uploads.py b/app/main/views/uploads.py index b4ff77d83..665fce5a5 100644 --- a/app/main/views/uploads.py +++ b/app/main/views/uploads.py @@ -37,7 +37,7 @@ MAX_FILE_UPLOAD_SIZE = 2 * 1024 * 1024 # 2MB @main.route("/services//uploads") -@user_has_permissions('send_messages') +@user_has_permissions() def uploads(service_id): return view_jobs(service_id) diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index 6adc195ef..b81503ad8 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -15,7 +15,7 @@ {% endif %} {% endif %} {% endif %} - {% if current_user.has_permissions('send_messages') and current_service.can_upload_letters %} + {% if current_service.can_upload_letters %}
  • Uploads
  • {% endif %}
  • Team members