[#325] fix forbidden for simple user
This commit is contained in:
parent
ccdf15bcad
commit
69cefd8764
|
@ -2,7 +2,7 @@
|
|||
class Projects::ProjectsController < Projects::BaseController
|
||||
include ProjectsHelper
|
||||
before_filter :authenticate_user!
|
||||
load_and_authorize_resource :id_param => :project_name, :collection => :possible_forks # to force member actions load
|
||||
load_and_authorize_resource :id_param => :project_name # to force member actions load
|
||||
before_filter :who_owns, :only => [:new, :create, :mass_import, :run_mass_import]
|
||||
|
||||
def index
|
||||
|
|
|
@ -31,6 +31,7 @@ class Ability
|
|||
|
||||
can :show, Group
|
||||
can :show, User
|
||||
can :possible_forks, Project
|
||||
|
||||
if user.guest? # Guest rights
|
||||
# can [:new, :create], RegisterRequest
|
||||
|
|
Loading…
Reference in New Issue