Refactor: change large :except before_filter to :only

pull/351/head
Eric Davis 14 years ago
parent 2918437f34
commit e04928c5b1
  1. 2
      app/controllers/projects_controller.rb

@ -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…
Cancel
Save