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

This commit is contained in:
Eric Davis committed 2011-02-08 09:25:37 -08:00
1 parent 75680e5a49
commit 40fc6e9751
3 files changed
+33 -13

No files matched your search

+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]} ]