Commit 45f72756149e4f22eb1b2c547a517f8213a81b20

Authored by AntonioTerceiro
1 parent 3022121d

ActionItem295: access denied is access denied: don't show the default layout



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1869 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/public/content_viewer_controller.rb
@@ -26,7 +26,8 @@ class ContentViewerController < PublicController @@ -26,7 +26,8 @@ class ContentViewerController < PublicController
26 end 26 end
27 27
28 if !@page.display_to?(user) 28 if !@page.display_to?(user)
29 - render :action => 'access_denied', :status => 403 29 + # FIXME find a nice "access denied" layout
  30 + render :action => 'access_denied', :status => 403, :layout => false
30 end 31 end
31 32
32 if @page.mime_type != 'text/html' 33 if @page.mime_type != 'text/html'