Commit f4d7c9c1 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 545253: Do not display flags as editable when you cannot edit attachment attributes

a=LpSolit (module owner)
parent 300f1db2
...@@ -160,6 +160,7 @@ ...@@ -160,6 +160,7 @@
[% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id [% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
attach_id = attachment.id attach_id = attachment.id
flag_types = attachment.flag_types flag_types = attachment.flag_types
read_only_flags = !can_edit
%] %]
</div> </div>
[% END %] [% END %]
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# Contributor(s): Myk Melez <myk@mozilla.org> # Contributor(s): Myk Melez <myk@mozilla.org>
#%] #%]
[% IF user.id %] [% IF user.id AND !read_only_flags %]
[%# We list flags by looping twice over the flag types relevant for the bug. [%# We list flags by looping twice over the flag types relevant for the bug.
# In the first loop, we display existing flags and then, for active types, # In the first loop, we display existing flags and then, for active types,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment