From 4c82210b4ab1d60962b170fdabe8a44515969e94 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 6 Sep 2009 17:23:32 +0200 Subject: Marked Controllers private / public and added authorization filters accordingly --- app/controllers/content_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/controllers/content_controller.rb') diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index d1bfa6b..250e6ba 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -1,5 +1,7 @@ class ContentController < ApplicationController + # Public + before_filter :find_page # This is the method that renders most of the the public content. It recieves @@ -27,7 +29,7 @@ class ContentController < ApplicationController def render_gallery @images = @page.assets.images - render :file => "custom/page_templates/public/gallery"#, :layout => true + render :file => "custom/page_templates/public/gallery" end private -- cgit v1.3