Limit the displayed events to the current conference

This commit is contained in:
Petko Bordjukov 2015-08-15 09:04:57 +03:00
parent 23ce93a853
commit 4d9432c76c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module Public
before_filter :authenticate_user! before_filter :authenticate_user!
def index 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 end
def edit def edit