[#5421] Add Assign Deliverable to Issue permission for the new/edit issue form

This commit is contained in:
Eric Davis
2011-02-08 09:25:37 -08:00
parent 75680e5a49
commit 40fc6e9751
3 changed files with 33 additions and 13 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<% if project.module_enabled?(:contracts) %>
<% if project.module_enabled?(:contracts) && User.current.allowed_to?(:assign_deliverable_to_issue, project) %>
<p>
<% options = project.contracts.inject([]) {|data, contract|
data << [contract.name, contract.deliverables.collect {|d| [d.title, d.id]} ]