summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/admin.html.tmpl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-08 08:26:33 +0200
committermkanat%bugzilla.org <>2008-08-08 08:26:33 +0200
commit50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 (patch)
tree424d04a868fb5fdffbfa2dd65cc8903ece84895f /template/en/default/admin/admin.html.tmpl
parentaca14df0a0daca1f2eb637d400285e3f14add35e (diff)
downloadbugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.gz
bugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.xz
Bug 442031: Make Bugzilla::User::groups return an arrayref of Bugzilla::Group objects (instead of a hashref of group ids and names).
Diffstat (limited to 'template/en/default/admin/admin.html.tmpl')
-rw-r--r--template/en/default/admin/admin.html.tmpl20
1 files changed, 10 insertions, 10 deletions
diff --git a/template/en/default/admin/admin.html.tmpl b/template/en/default/admin/admin.html.tmpl
index c681767b5..15f126ba5 100644
--- a/template/en/default/admin/admin.html.tmpl
+++ b/template/en/default/admin/admin.html.tmpl
@@ -36,7 +36,7 @@
<tr>
<td class="admin_links">
<dl>
- [% class = user.groups.tweakparams ? "" : "forbidden" %]
+ [% class = user.in_group('tweakparams') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editparams.cgi">Parameters</a></dt>
<dd class="[% class %]">Set core parameters of the installation. That's the
place where you specify the URL to access this installation, determine how
@@ -49,25 +49,25 @@
which will be used by default for all users. Users will be able to edit their
own preferences from the <a href="userprefs.cgi?tab=settings">Preferences</a>.</dd>
- [% class = user.groups.editcomponents ? "" : "forbidden" %]
+ [% class = user.in_group('editcomponents') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="sanitycheck.cgi">Sanity Check</a></dt>
<dd class="[% class %]">Run sanity checks to locate problems in your database.
This may take several tens of minutes depending on the size of your installation.
You can also automate this check by running <tt>sanitycheck.pl</tt> from a cron job.
A notification will be sent per email to the specified user if errors are detected.</dd>
- [% class = (user.groups.editusers || user.can_bless) ? "" : "forbidden" %]
+ [% class = (user.in_group('editusers') || user.can_bless) ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editusers.cgi">Users</a></dt>
<dd class="[% class %]">Create new user accounts or edit existing ones. You can
also add and remove users from groups (also known as "user privileges").</dd>
- [% class = (Param('useclassification') && user.groups.editclassifications) ? "" : "forbidden" %]
+ [% class = (Param('useclassification') && user.in_group('editclassifications')) ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editclassifications.cgi">Classifications</a></dt>
<dd class="[% class %]">If your installation has to manage many products at once,
it's a good idea to group these products into distinct categories. This lets users
find information more easily when doing searches or when filing new [% terms.bugs %].</dd>
- [% class = (user.groups.editcomponents
+ [% class = (user.in_group('editcomponents')
|| user.get_products_by_permission("editcomponents").size) ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editproducts.cgi">Products</a></dt>
<dd class="[% class %]">Edit all aspects of products, including group restrictions
@@ -76,7 +76,7 @@
<a href="editcomponents.cgi">components</a>, <a href="editversions.cgi">versions</a>
and <a href="editmilestones.cgi">milestones</a> directly.</dd>
- [% class = user.groups.editcomponents ? "" : "forbidden" %]
+ [% class = user.in_group('editcomponents') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editflagtypes.cgi">Flags</a></dt>
<dd class="[% class %]">A flag is a custom 4-states attribute of [% terms.bugs %]
and/or attachments. These states are: granted, denied, requested and undefined.
@@ -87,7 +87,7 @@
<td class="admin_links">
<dl>
- [% class = user.groups.admin ? "" : "forbidden" %]
+ [% class = user.in_group('admin') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editfields.cgi">Custom Fields</a></dt>
<dd class="[% class %]">[% terms.Bugzilla %] lets you define fields which are
not implemented by default, based on your local and specific requirements.
@@ -107,18 +107,18 @@
statuses available on [% terms.bug %] creation and allowed [% terms.bug %] status
transitions when editing existing [% terms.bugs %].</dd>
- [% class = user.groups.creategroups ? "" : "forbidden" %]
+ [% class = user.in_group('creategroups') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editgroups.cgi">Groups</a></dt>
<dd class="[% class %]">Define groups which will be used in the installation.
They can either be used to define new user privileges or to restrict the access
to some [% terms.bugs %].</dd>
- [% class = user.groups.editkeywords ? "" : "forbidden" %]
+ [% class = user.in_group('editkeywords') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editkeywords.cgi">Keywords</a></dt>
<dd class="[% class %]">Set keywords to be used with [% terms.bugs %]. Keywords
are an easy way to "tag" [% terms.bugs %] to let you find them more easily later.</dd>
- [% class = user.groups.bz_canusewhines ? "" : "forbidden" %]
+ [% class = user.in_group('bz_canusewhines') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editwhines.cgi">Whining</a></dt>
<dd class="[% class %]">Set queries which will be run at some specified date
and time, and get the result of these queries directly per email. This is a