From 45f72756149e4f22eb1b2c547a517f8213a81b20 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 4 Jun 2008 18:41:46 +0000 Subject: [PATCH] ActionItem295: access denied is access denied: don't show the default layout --- app/controllers/public/content_viewer_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index e2bf33c..87a2113 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -26,7 +26,8 @@ class ContentViewerController < PublicController end if !@page.display_to?(user) - render :action => 'access_denied', :status => 403 + # FIXME find a nice "access denied" layout + render :action => 'access_denied', :status => 403, :layout => false end if @page.mime_type != 'text/html' -- libgit2 0.21.2