From cdd4da962e3fc0f4811b75f59d57de78eaeaaa42 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 14 May 2012 13:35:23 +0800 Subject: Allow infra access to the "email queue" report --- extensions/BMO/lib/Reports.pm | 2 +- extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/BMO') diff --git a/extensions/BMO/lib/Reports.pm b/extensions/BMO/lib/Reports.pm index 55856e445..a06d796b5 100644 --- a/extensions/BMO/lib/Reports.pm +++ b/extensions/BMO/lib/Reports.pm @@ -687,7 +687,7 @@ sub email_queue_report { my $dbh = Bugzilla->dbh; my $user = Bugzilla->user; - $user->in_group('admin') + $user->in_group('admin') || $user->in_group('infra') || ThrowUserError('auth_failure', { group => 'admin', action => 'run', object => 'email_queue' }); diff --git a/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl b/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl index 852ed6cc4..dae7f9108 100644 --- a/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl +++ b/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl @@ -38,7 +38,7 @@ - Lists the groups a user is a member of. [% END %] - [% IF user.in_group('admin') %] + [% IF user.in_group('admin') || user.in_group('infra') %]
  • Email Queue -- cgit v1.2.3-24-g4f1b