diff options
Diffstat (limited to 'template/en/default/admin')
4 files changed, 14 insertions, 14 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 diff --git a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl index 3320ae48f..d18e03a53 100644 --- a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl +++ b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl @@ -71,7 +71,7 @@ [% IF param_name.defined && Param(param_name) == value %] <li>'[% value FILTER html %]' is the default value for the '[% field.description FILTER html %]' field. - [% IF user.groups.tweakparams %] + [% IF user.in_group('tweakparams') %] You first have to <a href="editparams.cgi?section=bugfields# [%- param_name FILTER url_quote %]">change the default value</a> for this field before you can delete this value. diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl index 218775dca..77d6772a6 100644 --- a/template/en/default/admin/users/confirm-delete.html.tmpl +++ b/template/en/default/admin/users/confirm-delete.html.tmpl @@ -69,8 +69,8 @@ <td> [% IF otheruser.groups.size %] <ul> - [% FOREACH group = otheruser.groups.keys %] - <li>[% group FILTER html %]</li> + [% FOREACH group = otheruser.groups %] + <li>[% group.name FILTER html %]</li> [% END %] </ul> [% ELSE %] diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl index feee4c5d6..f23aa1b85 100644 --- a/template/en/default/admin/users/userdata.html.tmpl +++ b/template/en/default/admin/users/userdata.html.tmpl @@ -27,7 +27,7 @@ <input size="64" maxlength="255" name="login" id="login" value="[% otheruser.login FILTER html %]" /> [% IF editform %] - [% IF !otheruser.groups.bz_sudo_protect %] + [% IF !otheruser.in_group('bz_sudo_protect') %] <br /> <a href="relogin.cgi?action=prepare-sudo&target_login= [%- otheruser.login FILTER url_quote %]">Impersonate this user</a> |