diff options
| author | Xinhui | 2017-12-19 14:44:00 +0100 |
|---|---|---|
| committer | Xinhui | 2017-12-19 14:44:00 +0100 |
| commit | eeaa2876f46e77c337fa30ab4b299acff3a29d09 (patch) | |
| tree | 806e0b4251d9a7fc574e9d2fa81e37987945e10b | |
| parent | 75b22972935ae660209430255cebabb2e781542b (diff) | |
| download | chouette-core-eeaa2876f46e77c337fa30ab4b299acff3a29d09.tar.bz2 | |
Remove update & create links5307_referential_lines_menu
Refs #5307
| -rw-r--r-- | app/decorators/referential_line_decorator.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/decorators/referential_line_decorator.rb b/app/decorators/referential_line_decorator.rb index 55acf7ed9..654f68bf5 100644 --- a/app/decorators/referential_line_decorator.rb +++ b/app/decorators/referential_line_decorator.rb @@ -24,21 +24,6 @@ class ReferentialLineDecorator < Draper::Decorator ) ) - if h.policy(Chouette::Line).create? && - context[:referential].organisation == context[:current_organisation] - links << Link.new( - content: h.t('actions.new'), - href: h.new_referential_line_path(context[:referential]) - ) - end - - if h.policy(object).update? - links << Link.new( - content: h.t('actions.edit'), - href: h.edit_referential_line_path(context[:referential], object) - ) - end - if h.policy(object).destroy? links << Link.new( content: h.destroy_link_content('actions.destroy'), |
