]> source.dussan.org Git - redmine.git/commitdiff
Fixed: 'Move' button always visible on issues list.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 7 Sep 2007 17:26:14 +0000 (17:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 7 Sep 2007 17:26:14 +0000 (17:26 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@713 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/list_issues.rhtml

index 345cc491ac297cd6fe6ac3d6b76f4f4782e88311..d85cca4a9f485cab72e7ae44c865c23cc1baea17 100644 (file)
@@ -76,8 +76,7 @@
 <%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'icon icon-csv' %>,
 <%= link_to 'PDF', {:action => 'export_issues_pdf', :id => @project}, :class => 'icon icon-pdf' %>
 </div>
-<p><%= submit_tag l(:button_move), :class => "button-small" %>
-&nbsp;
+<p><%= submit_tag(l(:button_move), :class => "button-small") if authorize_for('projects', 'move_issues') %>
 <%= pagination_links_full @issue_pages %>
 [ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]
 </p>