aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/line_referentials_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/line_referentials_controller.rb')
-rw-r--r--app/controllers/line_referentials_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/line_referentials_controller.rb b/app/controllers/line_referentials_controller.rb
index 39c2cdb89..03dab3f8f 100644
--- a/app/controllers/line_referentials_controller.rb
+++ b/app/controllers/line_referentials_controller.rb
@@ -3,6 +3,7 @@ class LineReferentialsController < ChouetteController
defaults :resource_class => LineReferential
def sync
+ authorize resource, :synchronize?
@sync = resource.line_referential_syncs.build
if @sync.save
flash[:notice] = t('notice.line_referential_sync.created')