aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/journey_patterns
diff options
context:
space:
mode:
authorVlatka Pavisic2017-02-06 11:42:12 +0100
committerVlatka Pavisic2017-02-07 11:25:29 +0100
commitd94b1271d147fdb5bbd1e616e116173198e858db (patch)
treee1b5631e72e009ffd80fdf4e47159b2b11cd899e /app/views/journey_patterns
parent9c3095c20aaef122212ed71ce8818e3a18b13308 (diff)
downloadchouette-core-d94b1271d147fdb5bbd1e616e116173198e858db.tar.bz2
Refs #2476 : Disable modification and deletion of resources from another referential; in progress
Diffstat (limited to 'app/views/journey_patterns')
-rw-r--r--app/views/journey_patterns/show.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/journey_patterns/show.html.slim b/app/views/journey_patterns/show.html.slim
index 417e4dc16..85ba4e7a5 100644
--- a/app/views/journey_patterns/show.html.slim
+++ b/app/views/journey_patterns/show.html.slim
@@ -30,7 +30,7 @@ h3.journey_pattern_stop_points = t('.stop_points')
- content_for :sidebar do
ul.actions
li
- - if policy(@journey_pattern).create?
+ - if policy(@journey_pattern).create? && @journey_pattern.referential.organisation == current_organisation
= link_to t('journey_patterns.actions.new'), new_referential_line_route_journey_pattern_path(@referential, @line, @route), class: 'add'
li
- if policy(@journey_pattern).edit?