Refactor: change large :except before_filter to :only
This commit is contained in:
parent
2918437f34
commit
e04928c5b1
|
@ -17,7 +17,7 @@ class ProjectsController < ApplicationController
|
|||
menu_item :settings, :only => :settings
|
||||
|
||||
before_filter :find_project, :except => [ :index, :new, :create, :copy ]
|
||||
before_filter :authorize, :except => [ :index, :new, :create, :copy, :archive, :unarchive, :destroy]
|
||||
before_filter :authorize, :only => [ :show, :settings, :edit, :update, :modules ]
|
||||
before_filter :authorize_global, :only => [:new, :create]
|
||||
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
|
||||
accept_key_auth :index, :show, :create, :update, :destroy
|
||||
|
|
Loading…
Reference in New Issue