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:
mkanat%bugzilla.org 2010-02-10 00:03:50 +00:00
parent 53ef873497
commit d0ed29ed4f
3 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
6974
6975

View File

@ -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 %]

View File

@ -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,