Commit c46b335544fddb56f4cdbeb33575578f83e5394d

Authored by Victor Costa
1 parent 99fa04df

Fix access denied view for uploaded files in private profiles

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