From d2fc61327062a49a66edc424eb1524cb1489b469 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 6 Aug 2018 11:18:32 +0100 Subject: [PATCH] Put counts back on notifications page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We think there is some need for users who don’t need to see the dashboard to quickly find out which messages have failed. So this commit brings back the status filters for all users (previously those with ‘basic view’ wouldn’t have had them). This makes it less of a drastic change when the `view_activity` permission is removed from a user. --- app/templates/views/notifications.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/templates/views/notifications.html b/app/templates/views/notifications.html index 75986b51a..6f361d708 100644 --- a/app/templates/views/notifications.html +++ b/app/templates/views/notifications.html @@ -21,13 +21,11 @@ {% if not message_type == "letter" %} - {% if current_user.has_permissions('view_activity') %} - {{ ajax_block( - partials, - url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status), - 'counts' - ) }} - {% endif %} + {{ ajax_block( + partials, + url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status), + 'counts' + ) }}