mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-24 10:44:00 -04:00
Let any user see the uploads page
Even if you can’t send messages you might still want to see the messages that other people have sent.
This commit is contained in:
@@ -37,7 +37,7 @@ MAX_FILE_UPLOAD_SIZE = 2 * 1024 * 1024 # 2MB
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/uploads")
|
||||
@user_has_permissions('send_messages')
|
||||
@user_has_permissions()
|
||||
def uploads(service_id):
|
||||
return view_jobs(service_id)
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
<li><a href="{{ url_for('main.uploads', service_id=current_service.id) }}" {{ main_navigation.is_selected('uploads') }}>Uploads</a></li>
|
||||
{% endif %}
|
||||
<li><a href="{{ url_for('.manage_users', service_id=current_service.id) }}" {{ main_navigation.is_selected('team-members') }}>Team members</a></li>
|
||||
|
||||
Reference in New Issue
Block a user