aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_lines/show.html.slim
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/referential_lines/show.html.slim')
-rw-r--r--app/views/referential_lines/show.html.slim3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim
index ad455862d..5c8e1b32d 100644
--- a/app/views/referential_lines/show.html.slim
+++ b/app/views/referential_lines/show.html.slim
@@ -139,6 +139,7 @@ p.after_map
- if !@line.hub_restricted? || (@line.hub_restricted? && @line.routes.size < 2)
/ FIXME #825
li
- = link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), class: 'add'
+ - if policy(Chouette::Route).create?
+ = link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), class: 'add'
= creation_tag(@line)