From: Toshi MARUYAMA Date: Fri, 20 Nov 2020 11:35:59 +0000 (+0000) Subject: shorten long line of ProjectsController X-Git-Tag: 4.2.0~374 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ff300581ca2d00a484562b9bccfc936942f851da;p=redmine.git shorten long line of ProjectsController git-svn-id: http://svn.redmine.org/redmine/trunk@20444 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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