mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
shorten long line of ProjectsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20444 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user