Refactor: audit and remove unknown actions
This commit is contained in:
parent
dd6d9d1c68
commit
2918437f34
|
@ -16,8 +16,8 @@ class ProjectsController < ApplicationController
|
|||
menu_item :roadmap, :only => :roadmap
|
||||
menu_item :settings, :only => :settings
|
||||
|
||||
before_filter :find_project, :except => [ :index, :list, :new, :create, :copy ]
|
||||
before_filter :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy]
|
||||
before_filter :find_project, :except => [ :index, :new, :create, :copy ]
|
||||
before_filter :authorize, :except => [ :index, :new, :create, :copy, :archive, :unarchive, :destroy]
|
||||
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