[#345] fix authorizing projects controller

This commit is contained in:
Alexander Machehin 2014-03-21 16:40:58 +06:00
parent a9bf8c3660
commit 197c33195a
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class Projects::ProjectsController < Projects::BaseController class Projects::ProjectsController < Projects::BaseController
include ProjectsHelper include ProjectsHelper
before_filter :authenticate_user! before_filter :authenticate_user!
load_and_authorize_resource id_param: :project_name # to force member actions load load_and_authorize_resource id_param: :name_with_owner # to force member actions load
before_filter :who_owns, only: [:new, :create, :mass_import, :run_mass_import] before_filter :who_owns, only: [:new, :create, :mass_import, :run_mass_import]
def index def index