From e04928c5b13fd4e82020925059e387947b8df793 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 16 May 2011 10:21:24 -0700 Subject: [PATCH] Refactor: change large :except before_filter to :only --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 3bd12a67c2..08b2f800d2 100644 --- a/app/controllers/projects_controller.rb +++ b/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