Commit 0f3849876a8ce420817b5aee6949f3721b75b052
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'fix_content_viewer_private_uploaded_file' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
@@ -185,7 +185,7 @@ class ContentViewerController < ApplicationController | @@ -185,7 +185,7 @@ class ContentViewerController < ApplicationController | ||
185 | elsif !@page.display_to?(user) | 185 | elsif !@page.display_to?(user) |
186 | if !profile.public? | 186 | if !profile.public? |
187 | private_profile_partial_parameters | 187 | private_profile_partial_parameters |
188 | - render :template => 'profile/_private_profile', :status => 403 | 188 | + render :template => 'profile/_private_profile', :status => 403, :formats => [:html] |
189 | allowed = false | 189 | allowed = false |
190 | else #if !profile.visible? | 190 | else #if !profile.visible? |
191 | render_access_denied | 191 | render_access_denied |