Commit c46b335544fddb56f4cdbeb33575578f83e5394d
1 parent
99fa04df
Exists in
master
and in
22 other branches
Fix access denied view for uploaded files in private profiles
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,7 +126,7 @@ class ContentViewerController < ApplicationController | ||
126 | elsif !@page.display_to?(user) | 126 | elsif !@page.display_to?(user) |
127 | if !profile.public? | 127 | if !profile.public? |
128 | private_profile_partial_parameters | 128 | private_profile_partial_parameters |
129 | - render :template => 'profile/_private_profile', :status => 403 | 129 | + render :template => 'profile/_private_profile', :status => 403, :formats => [:html] |
130 | allowed = false | 130 | allowed = false |
131 | else #if !profile.visible? | 131 | else #if !profile.visible? |
132 | render_access_denied | 132 | render_access_denied |