@@ -271,7 +271,7 class IssuesController < ApplicationController | |||||
271 | # find projects to which the user is allowed to move the issue |
|
271 | # find projects to which the user is allowed to move the issue | |
272 | if User.current.admin? |
|
272 | if User.current.admin? | |
273 | # admin is allowed to move issues to any active (visible) project |
|
273 | # admin is allowed to move issues to any active (visible) project | |
274 |
@allowed_projects = Project.find(:all, :conditions => Project.visible_by(User.current) |
|
274 | @allowed_projects = Project.find(:all, :conditions => Project.visible_by(User.current)) | |
275 | else |
|
275 | else | |
276 | User.current.memberships.each {|m| @allowed_projects << m.project if m.role.allowed_to?(:move_issues)} |
|
276 | User.current.memberships.each {|m| @allowed_projects << m.project if m.role.allowed_to?(:move_issues)} | |
277 | end |
|
277 | end |
@@ -8,7 +8,7 | |||||
8 | <div class="box tabular"> |
|
8 | <div class="box tabular"> | |
9 | <p><label for="new_project_id"><%=l(:field_project)%>:</label> |
|
9 | <p><label for="new_project_id"><%=l(:field_project)%>:</label> | |
10 | <%= select_tag "new_project_id", |
|
10 | <%= select_tag "new_project_id", | |
11 |
|
|
11 | project_tree_options_for_select(@allowed_projects, :selected => @target_project), | |
12 | :onchange => remote_function(:url => { :action => 'move' }, |
|
12 | :onchange => remote_function(:url => { :action => 'move' }, | |
13 | :method => :get, |
|
13 | :method => :get, | |
14 | :update => 'content', |
|
14 | :update => 'content', |
General Comments 0
You need to be logged in to leave comments.
Login now