Limit the displayed events to the current conference
This commit is contained in:
parent
23ce93a853
commit
4d9432c76c
|
@ -3,7 +3,7 @@ module Public
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@events = Event.joins(:proposition, :participations).where('propositions.proposer_id = ? OR participations.participant_id = ?', current_user.id, current_user.id)
|
||||
@events = Event.joins(:conference, :proposition, :participations).where(conference: current_conference).where('propositions.proposer_id = ? OR participations.participant_id = ?', current_user.id, current_user.id)
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
Loading…
Reference in New Issue