1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Gervase Markham <gerv@gerv.net>
23
# has_bits: array of hashes. May be empty.
24
# name => Names of the permissions the user has.
25
# desc => Descriptions of the permissions the user has.
26
# set_bits: array of hashes. May be empty.
27
# name => Names of the permissions the user can set for
29
# desc => Descriptions of the permissions the user can set for
33
[% PROCESS global/variables.none.tmpl %]
35
<table align="center">
38
[% IF has_bits.size %]
39
You have the following permission [% terms.bits %] set on your account:
40
<table align="center">
41
[% FOREACH bit_description = has_bits %]
43
<td>[% bit_description.name FILTER html %]</td>
44
<td>[% bit_description.desc FILTER html_light %]</td>
49
[% FOREACH privs = ["editcomponents", "canconfirm", "editbugs"] %]
50
[% SET products = ${"local_$privs"} %]
51
[% IF products && products.size %]
54
You also have local '[% privs FILTER html %]' privileges
55
for the following products:
58
[% FOREACH product = products %]
59
[% product.name FILTER html %]<br>
66
There are no permission [% terms.bits %] set on your account.
69
[% IF user.groups.editusers %]
71
You have editusers privileges. You can turn on and off
72
all permissions for all users.
73
[% ELSIF set_bits.size %]
75
And you can turn on or off the following [% terms.bits %] for
76
<a href="editusers.cgi">other users</a>:
77
<table align="center">
78
[% FOREACH bit_description = set_bits %]
80
<td>[% bit_description.name FILTER html %]</td>
81
<td>[% bit_description.desc FILTER html_light %]</td>
87
[% IF user.groups.bz_sudoers %]
89
You are a member of the <b>bz_sudoers</b> group, so you can
90
<a href="relogin.cgi?action=prepare-sudo">impersonate someone else</a>.