only select favorites which match the current user id

This commit is contained in:
Pfingstfrosch 2020-05-16 12:26:21 +02:00
parent 72be2d07f3
commit dd7ac8e64f

View File

@ -1,7 +1,7 @@
class FavoritesController < ApplicationController class FavoritesController < ApplicationController
def people def people
@favoritePeople = FavoritePerson.all @favoritePeople = FavoritePerson.where('user_id': current_user.id)
@host = 'https://tiss.tuwien.ac.at' @host = 'https://tiss.tuwien.ac.at'
end end