Merge pull request #907 from sonalkr132/proposal-test

Proposal controller improvements and test
This commit is contained in:
Henne Vogelsang 2016-04-01 14:49:50 +02:00
commit f56fc0052f
6 changed files with 617 additions and 43 deletions

View file

@ -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, Registration do |registration|
registration.new_record?