only select favorites which match the current user id
This commit is contained in:
parent
72be2d07f3
commit
dd7ac8e64f
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user