only select favorites which match the current user id
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class FavoritesController < ApplicationController
|
||||
|
||||
def people
|
||||
@favoritePeople = FavoritePerson.all
|
||||
@favoritePeople = FavoritePerson.where('user_id': current_user.id)
|
||||
@host = 'https://tiss.tuwien.ac.at'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user