diff --git a/app/controllers/people/picture_controller.rb b/app/controllers/people/picture_controller.rb index e3bf3c48b..0113ef2ba 100644 --- a/app/controllers/people/picture_controller.rb +++ b/app/controllers/people/picture_controller.rb @@ -6,7 +6,7 @@ class PictureController < CrudController self.permitted_attrs = %i[picture] def show - picture_url = person.picture.file.nil? ? default_avatar_path : person.picture.url + picture_url = person.picture.file.nil? ? default_avatar_path : person.picture.path send_file(picture_url, disposition: 'inline') end