From c46b335544fddb56f4cdbeb33575578f83e5394d Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 22 Oct 2014 13:58:22 -0300 Subject: [PATCH] Fix access denied view for uploaded files in private profiles --- app/controllers/public/content_viewer_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index 2f3f168..ea5925a 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -126,7 +126,7 @@ class ContentViewerController < ApplicationController elsif !@page.display_to?(user) if !profile.public? private_profile_partial_parameters - render :template => 'profile/_private_profile', :status => 403 + render :template => 'profile/_private_profile', :status => 403, :formats => [:html] allowed = false else #if !profile.visible? render_access_denied -- libgit2 0.21.2