Speaker is also able to see the proposal and able to modify it

This commit is contained in:
Naman Gupta 2017-11-23 01:19:26 +05:30 committed by Stella Rouzi
parent e5009f168c
commit ac8b187f1f
2 changed files with 16 additions and 6 deletions

View file

@ -216,7 +216,7 @@ class User < ApplicationRecord
end
def proposals(conference)
events.where('program_id = ? AND event_users.event_role=?', conference.program.id, 'submitter')
events.where('program_id = ? AND (event_users.event_role=? OR event_users.event_role=?)', conference.program.id, 'submitter', 'speaker')
end
def proposal_count(conference)