summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-05-14 07:35:23 +0200
committerByron Jones <bjones@mozilla.com>2012-05-14 07:35:23 +0200
commitcdd4da962e3fc0f4811b75f59d57de78eaeaaa42 (patch)
tree8da3a3d0cf25cf1d19a7042c2a6e878ad6dbc39c /extensions/BMO
parentf9ab3eb604c30322ab5acbed3ec7c9e9fb08218d (diff)
downloadbugzilla-cdd4da962e3fc0f4811b75f59d57de78eaeaaa42.tar.gz
bugzilla-cdd4da962e3fc0f4811b75f59d57de78eaeaaa42.tar.xz
Allow infra access to the "email queue" report
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/lib/Reports.pm2
-rw-r--r--extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl2
2 files changed, 2 insertions, 2 deletions
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 @@
</strong> - Lists the groups a user is a member of.
</li>
[% END %]
- [% IF user.in_group('admin') %]
+ [% IF user.in_group('admin') || user.in_group('infra') %]
<li>
<strong>
<a href="[% urlbase FILTER none %]page.cgi?id=email_queue.html">Email Queue</a>