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