Bug 545253: Do not display flags as editable when you cannot edit attachment attributes
a=LpSolit (module owner) git-svn-id: svn://10.0.0.236/trunk@259657 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
53ef873497
commit
d0ed29ed4f
@ -1 +1 @@
|
||||
6974
|
||||
6975
|
||||
@ -160,6 +160,7 @@
|
||||
[% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
|
||||
attach_id = attachment.id
|
||||
flag_types = attachment.flag_types
|
||||
read_only_flags = !can_edit
|
||||
%]
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
# 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.
|
||||
# In the first loop, we display existing flags and then, for active types,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user