From b255b7760ac6a3389c3cd6c77b259679eb0401a7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Thu, 7 Oct 2010 05:11:28 +0000 Subject: 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 --- app/controllers/context_menus_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/context_menus_controller.rb') 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 -- cgit v1.2.3