From 0d3a72b793725118641c4d7abf511b4fc98f7aef Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 11 Nov 2006 00:51:27 +0000 Subject: Bug 189627: Implement per-product privileges - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/account/prefs/permissions.html.tmpl | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'template/en/default/account/prefs/permissions.html.tmpl') diff --git a/template/en/default/account/prefs/permissions.html.tmpl b/template/en/default/account/prefs/permissions.html.tmpl index 77dda1ce4..a178393ae 100644 --- a/template/en/default/account/prefs/permissions.html.tmpl +++ b/template/en/default/account/prefs/permissions.html.tmpl @@ -38,7 +38,6 @@ [% IF has_bits.size %] You have the following permission [% terms.bits %] set on your account:

-
[% FOREACH bit_description = has_bits %] @@ -47,6 +46,23 @@ [% END %]
+ + [% FOREACH privs = ["editcomponents", "canconfirm", "editbugs"] %] + [% SET products = ${"local_$privs"} %] + [% IF products && products.size %] +
+

+ You also have local '[% privs FILTER html %]' privileges + for the following products: +

+

+ [% FOREACH product = products %] + [% product.name FILTER html %]
+ [% END %] +

+ [% END %] + [% END %] + [% ELSE %] There are no permission [% terms.bits %] set on your account. [% END %] -- cgit v1.2.3-24-g4f1b