Add authorization rule for create user by unsigned user
Add authorization to failed user save path cause it was complaining that no authorization was performed in that path.
This commit is contained in:
parent
dcb98c49f9
commit
e851c0b4ff
3 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class Ability
|
|||
|
||||
# can view Commercials of confirmed Events
|
||||
can :show, Commercial, commercialable_type: 'Event', commercialable_id: Event.where(state: 'confirmed').pluck(:id)
|
||||
can :show, User
|
||||
can [:show, :create], User
|
||||
unless CONFIG['authentication']['ichain']['enabled']
|
||||
can [:show, :create], Registration do |registration|
|
||||
registration.new_record?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue