aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/connection_links/index.html.slim
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/connection_links/index.html.slim')
-rw-r--r--app/views/connection_links/index.html.slim3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/connection_links/index.html.slim b/app/views/connection_links/index.html.slim
index d36c6a125..7651ae340 100644
--- a/app/views/connection_links/index.html.slim
+++ b/app/views/connection_links/index.html.slim
@@ -20,4 +20,5 @@
- content_for :sidebar do
ul.actions
li
- = link_to t('connection_links.actions.new'), new_referential_connection_link_path(@referential), class: 'add'
+ - if policy(Chouette::ConnectionLink).create? && @referential.organisation == current_organisation
+ = link_to t('connection_links.actions.new'), new_referential_connection_link_path(@referential), class: 'add'