Commit 3abc61b5 authored by dgt's avatar dgt

Fix: Return 404 if a banner image is not found

parent ef938b66
......@@ -20,6 +20,9 @@ class PicturesController < ApplicationController
send_file(@picture.private_file_path(@geometry), type: @picture.content_type, disposition: 'inline')
rescue ErrorMessage => e
Rails.logger.warn e
render nothing: true, status: 404
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment