diff --git a/app/controllers/favorites_controller.rb b/app/controllers/favorites_controller.rb index 0a426dc..f53bef6 100644 --- a/app/controllers/favorites_controller.rb +++ b/app/controllers/favorites_controller.rb @@ -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