summaryrefslogtreecommitdiffstats
path: root/app/controllers/context_menus_controller.rb
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-10-07 05:11:28 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-10-07 05:11:28 +0000
commitb255b7760ac6a3389c3cd6c77b259679eb0401a7 (patch)
treeffc3c377f1e1cae82105d608de972aefb1d35ea4 /app/controllers/context_menus_controller.rb
parent2ecca7e4df96cba3fe5ab75997ca179cd62968f8 (diff)
downloadredmine-b255b7760ac6a3389c3cd6c77b259679eb0401a7.tar.gz
redmine-b255b7760ac6a3389c3cd6c77b259679eb0401a7.zip
Added ability to delete issues from different projects through contextual menu (#5332)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4236 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/context_menus_controller.rb')
-rw-r--r--app/controllers/context_menus_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb
index 5f4b02ca2..ae8517243 100644
--- a/app/controllers/context_menus_controller.rb
+++ b/app/controllers/context_menus_controller.rb
@@ -21,7 +21,7 @@ class ContextMenusController < ApplicationController
:update => (@project && (User.current.allowed_to?(:edit_issues, @project) || (User.current.allowed_to?(:change_status, @project) && @allowed_statuses && !@allowed_statuses.empty?))),
:move => (@project && User.current.allowed_to?(:move_issues, @project)),
:copy => (@issue && @project.trackers.include?(@issue.tracker) && User.current.allowed_to?(:add_issues, @project)),
- :delete => (@project && User.current.allowed_to?(:delete_issues, @project))
+ :delete => User.current.allowed_to?(:delete_issues, @projects)
}
if @project
@assignables = @project.assignable_users