Skip to content

Commit

Permalink
Revert "Fix rendering of request/hidden_correspondence"
Browse files Browse the repository at this point in the history
This reverts commit 02c7b9d.
  • Loading branch information
gbp committed Sep 29, 2022
1 parent 64bd221 commit bffa359
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/attachments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,9 @@ def authenticate_attachment
request.format = :html
return render_hidden
end

if cannot?(:read, @incoming_message)
request.format = :html
return render_hidden(
'request/hidden_correspondence',
locals: { message: @incoming_message }
)
return render_hidden('request/hidden_correspondence')
end

if @attachment
Expand Down

0 comments on commit bffa359

Please sign in to comment.