summaryrefslogtreecommitdiffstats
path: root/app/controllers/context_menus_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:18:17 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:18:17 +0000
commitbe743ee1b9a8ab1f5c5045670510f541466fa5f9 (patch)
tree2a046a0fd0dadcdfc56fb7a7386a2f5b405516b8 /app/controllers/context_menus_controller.rb
parent58a5f38ceeef11b7c809eeebcc4a645c99b7dcd7 (diff)
downloadredmine-be743ee1b9a8ab1f5c5045670510f541466fa5f9.tar.gz
redmine-be743ee1b9a8ab1f5c5045670510f541466fa5f9.zip
fix source indent of ContextMenusController
git-svn-id: http://svn.redmine.org/redmine/trunk@20207 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/context_menus_controller.rb')
-rw-r--r--app/controllers/context_menus_controller.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb
index 6e39f60af..e9ff824f5 100644
--- a/app/controllers/context_menus_controller.rb
+++ b/app/controllers/context_menus_controller.rb
@@ -31,12 +31,13 @@ class ContextMenusController < ApplicationController
@allowed_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
- @can = {:edit => @issues.all?(&:attributes_editable?),
- :log_time => (@project && User.current.allowed_to?(:log_time, @project)),
- :copy => User.current.allowed_to?(:copy_issues, @projects) && Issue.allowed_target_projects.any?,
- :add_watchers => User.current.allowed_to?(:add_issue_watchers, @projects),
- :delete => @issues.all?(&:deletable?)
- }
+ @can = {
+ :edit => @issues.all?(&:attributes_editable?),
+ :log_time => (@project && User.current.allowed_to?(:log_time, @project)),
+ :copy => User.current.allowed_to?(:copy_issues, @projects) && Issue.allowed_target_projects.any?,
+ :add_watchers => User.current.allowed_to?(:add_issue_watchers, @projects),
+ :delete => @issues.all?(&:deletable?)
+ }
@assignables = @issues.map(&:assignable_users).reduce(:&)
@trackers = @projects.map {|p| Issue.allowed_target_trackers(p)}.reduce(:&)