diff options
| author | hukl <contact@smyck.org> | 2009-09-06 17:23:32 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-06 17:23:32 +0200 |
| commit | 4c82210b4ab1d60962b170fdabe8a44515969e94 (patch) | |
| tree | 7d37751033e1b0b9b39018bfbb0db9201693d459 /app/controllers/content_controller.rb | |
| parent | 8ff9a6876785e04f695466c5d536b535223d8fdc (diff) | |
Marked Controllers private / public and added authorization filters accordingly
Diffstat (limited to 'app/controllers/content_controller.rb')
| -rw-r--r-- | app/controllers/content_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
| 1 | class ContentController < ApplicationController | 1 | class ContentController < ApplicationController |
| 2 | 2 | ||
| 3 | # Public | ||
| 4 | |||
| 3 | before_filter :find_page | 5 | before_filter :find_page |
| 4 | 6 | ||
| 5 | # This is the method that renders most of the the public content. It recieves | 7 | # This is the method that renders most of the the public content. It recieves |
| @@ -27,7 +29,7 @@ class ContentController < ApplicationController | |||
| 27 | 29 | ||
| 28 | def render_gallery | 30 | def render_gallery |
| 29 | @images = @page.assets.images | 31 | @images = @page.assets.images |
| 30 | render :file => "custom/page_templates/public/gallery"#, :layout => true | 32 | render :file => "custom/page_templates/public/gallery" |
| 31 | end | 33 | end |
| 32 | 34 | ||
| 33 | private | 35 | private |
