summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-06-14 07:22:22 +0200
committerSimon Green <sgreen@redhat.com>2014-06-14 07:22:22 +0200
commit80c434b3c9afec9ba606e5061ef042d3b96720d3 (patch)
tree535d7785636b038ade627b082bd078c2764b7e2a /template
parent6c6efdde5b5e041deb75f65b5a18baae7665d660 (diff)
downloadbugzilla-80c434b3c9afec9ba606e5061ef042d3b96720d3.tar.gz
bugzilla-80c434b3c9afec9ba606e5061ef042d3b96720d3.tar.xz
Bug 1012508 - Add a admin_menu hook to change who has access to admin.cgi
r=gerv, a=sgreen
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/common-links.html.tmpl6
1 files changed, 1 insertions, 5 deletions
diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl
index c6c8863c5..ec23f551e 100644
--- a/template/en/default/global/common-links.html.tmpl
+++ b/template/en/default/global/common-links.html.tmpl
@@ -53,11 +53,7 @@
[% IF user.login %]
<li><span class="separator">| </span><a href="userprefs.cgi">Preferences</a></li>
- [% IF user.in_group('tweakparams') || user.in_group('editusers') || user.can_bless
- || (Param('useclassification') && user.in_group('editclassifications'))
- || user.in_group('editcomponents') || user.in_group('admin') || user.in_group('creategroups')
- || user.in_group('editkeywords') || user.in_group('bz_canusewhines')
- || user.get_products_by_permission("editcomponents").size %]
+ [% IF user.can_administer %]
<li><span class="separator">| </span><a href="admin.cgi">Administration</a></li>
[% END %]