From 749df1cfe907190632b09e434f9411cf08b5b2cf Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 30 Jul 2015 16:41:18 +0100 Subject: Mark users who have moderate permission. --- t/app/controller/admin.t | 2 +- templates/web/base/admin/user-form.html | 3 ++- templates/web/base/admin/users.html | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index fb3ab1917..498f1cedc 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -1083,7 +1083,7 @@ subtest 'report search' => sub { subtest 'search abuse' => sub { $mech->get_ok( '/admin/users?search=example' ); - $mech->content_like(qr{test4\@example.com.*\s*.*?\s*\(Email in abuse table}); + $mech->content_like(qr{test4\@example.com.*\s*.*?\s*\(Email in abuse table}s); }; subtest 'show flagged entries' => sub { diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html index 4a57b05a0..3956e8533 100644 --- a/templates/web/base/admin/user-form.html +++ b/templates/web/base/admin/user-form.html @@ -34,8 +34,9 @@ [% FOR body IN bodies %] [% END %] - + [% IF user.from_body AND user.has_permission_to('moderate', user.from_body.id) %]*[% END %] + [% IF c.cobrand.moniker != 'zurich' %]
  • diff --git a/templates/web/base/admin/users.html b/templates/web/base/admin/users.html index db97c7d59..19a3de03c 100644 --- a/templates/web/base/admin/users.html +++ b/templates/web/base/admin/users.html @@ -24,7 +24,9 @@ [% PROCESS value_or_nbsp value=user.name %] [% PROCESS value_or_nbsp value=user.email %] - [% PROCESS value_or_nbsp value=user.from_body.name %] + [% PROCESS value_or_nbsp value=user.from_body.name %] + [% IF user.from_body AND user.has_permission_to('moderate', user.from_body.id) %] * [% END %] + [% IF c.cobrand.moniker != 'zurich' %] [% user.flagged == 2 ? loc('(Email in abuse table)') : user.flagged ? loc('Yes') : ' ' %] [% END %] -- cgit v1.2.3