Merge pull request #907 from sonalkr132/proposal-test
Proposal controller improvements and test
This commit is contained in:
commit
f56fc0052f
6 changed files with 617 additions and 43 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, Registration do |registration|
|
||||
registration.new_record?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue