From: Frédéric Buclin Date: Wed, 1 Aug 2012 21:07:36 +0000 (+0200) Subject: Bug 779600: Hide flag types you cannot request nor set instead of leaving them as... X-Git-Tag: bugzilla-4.3.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a9af9adf59089bd612b112c29fcb88e054dacd6;p=thirdparty%2Fbugzilla.git Bug 779600: Hide flag types you cannot request nor set instead of leaving them as disabled r=dkl a=LpSolit --- diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl index 75c10c075d..9eb6b44413 100644 --- a/template/en/default/flag/list.html.tmpl +++ b/template/en/default/flag/list.html.tmpl @@ -91,6 +91,7 @@ [%# Display a table row for flags %] [% BLOCK flag_row %] + [% RETURN IF !flag && !((type.is_requestable && user.can_request_flag(type)) || user.can_set_flag(type)) %] [% SET fid = flag ? "flag-$flag.id" : "flag_type-$type.id" %] @@ -107,9 +108,6 @@