diff options
| author | Vlatka Pavisic | 2017-01-03 17:28:37 +0100 |
|---|---|---|
| committer | Vlatka Pavisic | 2017-01-03 17:28:37 +0100 |
| commit | d368e6304ba890f737fb01b2e5f235ba145b346b (patch) | |
| tree | ec8b07cc0fb074b39fc0732352dbefddeec000c9 /app/controllers | |
| parent | 63e20d284855f9e40706e94dc8d17558eb18e1e4 (diff) | |
| download | chouette-core-d368e6304ba890f737fb01b2e5f235ba145b346b.tar.bz2 | |
Refs #2263 : CalendarPolicy
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/calendars_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb index 579a48e1d..81eb029a6 100644 --- a/app/controllers/calendars_controller.rb +++ b/app/controllers/calendars_controller.rb @@ -1,6 +1,6 @@ class CalendarsController < BreadcrumbController defaults resource_class: Calendar - before_action :check_policy, only: [:edit, :update, :destroy] + before_action :check_policy, except: [:index, :new, :create] respond_to :html respond_to :js, only: :index |
