From ff300581ca2d00a484562b9bccfc936942f851da Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 20 Nov 2020 11:35:59 +0000 Subject: [PATCH] shorten long line of ProjectsController git-svn-id: http://svn.redmine.org/redmine/trunk@20444 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/projects_controller.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 7730f51b4..8750d9265 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -22,10 +22,13 @@ class ProjectsController < ApplicationController menu_item :settings, :only => :settings menu_item :projects, :only => [:index, :new, :copy, :create] - before_action :find_project, :except => [ :index, :autocomplete, :list, :new, :create, :copy ] - before_action :authorize, :except => [ :index, :autocomplete, :list, :new, :create, :copy, :archive, :unarchive] + before_action :find_project, + :except => [:index, :autocomplete, :list, :new, :create, :copy] + before_action :authorize, + :except => [:index, :autocomplete, :list, :new, :create, :copy, + :archive, :unarchive] before_action :authorize_global, :only => [:new, :create] - before_action :require_admin, :only => [ :copy, :archive, :unarchive ] + before_action :require_admin, :only => [:copy, :archive, :unarchive] accept_rss_auth :index accept_api_auth :index, :show, :create, :update, :destroy require_sudo_mode :destroy -- 2.39.5