Commit 5710cda8420c4193276b39c22589964d91691e4b

Authored by Victor Costa
1 parent 64b33a5d

rails3: fix render of private profile

app/controllers/public/content_viewer_controller.rb
@@ -168,7 +168,7 @@ class ContentViewerController < ApplicationController @@ -168,7 +168,7 @@ class ContentViewerController < ApplicationController
168 elsif !@page.display_to?(user) 168 elsif !@page.display_to?(user)
169 if !profile.public? 169 if !profile.public?
170 private_profile_partial_parameters 170 private_profile_partial_parameters
171 - render :template => 'profile/_private_profile.rhtml', :status => 403 171 + render :template => 'profile/_private_profile', :status => 403
172 allowed = false 172 allowed = false
173 else #if !profile.visible? 173 else #if !profile.visible?
174 render_access_denied 174 render_access_denied