Commit fb147d67120828f198ef2b3180152913b5ae1597
Exists in
master
and in
22 other branches
Merge branch 'fix_content_viewer_private_uploaded_file' into 'master'
Fix access denied view for uploaded files in private profiles See merge request !347
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
... | ... | @@ -126,7 +126,7 @@ class ContentViewerController < ApplicationController |
126 | 126 | elsif !@page.display_to?(user) |
127 | 127 | if !profile.public? |
128 | 128 | private_profile_partial_parameters |
129 | - render :template => 'profile/_private_profile', :status => 403 | |
129 | + render :template => 'profile/_private_profile', :status => 403, :formats => [:html] | |
130 | 130 | allowed = false |
131 | 131 | else #if !profile.visible? |
132 | 132 | render_access_denied | ... | ... |