aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Dober2017-12-19 16:33:29 +0100
committerGitHub2017-12-19 16:33:29 +0100
commit84739968d68c561f6317b9fa21a476dc0dcb240b (patch)
treeff3c628cd81568473785a74af0d9a3bfd9025795
parent5df065c68770756ecf8ddde53b133927d7584835 (diff)
parenteeaa2876f46e77c337fa30ab4b299acff3a29d09 (diff)
downloadchouette-core-84739968d68c561f6317b9fa21a476dc0dcb240b.tar.bz2
Merge pull request #160 from af83/5307_referential_lines_menu
#5307 Remove update & create links
-rw-r--r--app/decorators/referential_line_decorator.rb15
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'),