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/pages_controller.rb | |
| parent | 8ff9a6876785e04f695466c5d536b535223d8fdc (diff) | |
Marked Controllers private / public and added authorization filters accordingly
Diffstat (limited to 'app/controllers/pages_controller.rb')
| -rw-r--r-- | app/controllers/pages_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 6e826c0..a684327 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | class PagesController < ApplicationController | 1 | class PagesController < ApplicationController |
| 2 | 2 | ||
| 3 | # Private | ||
| 4 | |||
| 5 | before_filter :login_required | ||
| 6 | |||
| 3 | def preview | 7 | def preview |
| 4 | @page = Page.find(params[:id]) | 8 | @page = Page.find(params[:id]) |
| 5 | 9 | ||
