From d1221d5d97da07a59cd709dd25a2c33b6ffbf7e5 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Wed, 29 Nov 2017 21:20:58 +0100 Subject: Remove membership test of current organisation in lines#index. Refs #4824 --- app/views/lines/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim index 911c95e0c..d0d76d1cb 100644 --- a/app/views/lines/index.html.slim +++ b/app/views/lines/index.html.slim @@ -4,7 +4,7 @@ t('lines.index.title'), 'Lorem ipsum dolor sit amet', '', - ((policy(Chouette::Line).create? && @line_referential.organisations.include?(current_organisation)) ? link_to(t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'btn btn-primary') : '') + (policy(Chouette::Line).create? ? link_to(t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'btn btn-primary') : '') / PageContent .page_content -- cgit v1.2.3