Commit 2ee97093 authored by reed%reedloden.com's avatar reed%reedloden.com

Bug 433851 - "Flag <select> not disabled even though user can't request or…

Bug 433851 - "Flag <select> not disabled even though user can't request or change flag" [p=reed/LpSolit r+a=LpSolit]
parent 8439883b
......@@ -181,7 +181,7 @@
<td>
<select id="flag_type-[% type.id %]" name="flag_type-[% type.id %]"
title="[% type.description FILTER html %]"
[% " disabled=\"disabled\"" UNLESS user.can_request_flag(type) %]
[% " disabled=\"disabled\"" UNLESS (type.is_requestable && user.can_request_flag(type)) || user.can_set_flag(type) %]
onchange="toggleRequesteeField(this);"
class="flag_select">
<option value="X"></option>
......@@ -235,7 +235,7 @@
<td>
<select id="flag_type-[% type.id %]" name="flag_type-[% type.id %]"
title="[% type.description FILTER html %]"
[% " disabled=\"disabled\"" UNLESS user.can_request_flag(type) %]
[% " disabled=\"disabled\"" UNLESS (type.is_requestable && user.can_request_flag(type)) || user.can_set_flag(type) %]
onchange="toggleRequesteeField(this);"
class="flag_select">
<option value="X"></option>
......
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