diff options
| author | Xinhui | 2016-10-14 10:31:44 +0200 |
|---|---|---|
| committer | Xinhui | 2016-10-14 10:31:44 +0200 |
| commit | 504a817e97f067bb9399d775402d228e26246071 (patch) | |
| tree | c65f117f13ed4a0e456fdfe81434ce60d01e90c0 | |
| parent | e55be719d1f65f518a63ba65cf443d2d49c291bb (diff) | |
| download | chouette-core-504a817e97f067bb9399d775402d228e26246071.tar.bz2 | |
Policy check Line create link
Refs #1813
| -rw-r--r-- | app/views/lines/index.html.slim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim index a28d3d765..36a75fb98 100644 --- a/app/views/lines/index.html.slim +++ b/app/views/lines/index.html.slim @@ -24,12 +24,13 @@ - content_for :sidebar do ul.actions - li - = link_to t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'add' + - if policy(Chouette::Line).create? + li + = link_to t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'add' #multiple_selection_menu h4 = t('.multi_selection') - + .disabled a.enable href="#" = t('.multi_selection_enable') @@ -45,4 +46,4 @@ = t('.select_all') = " | " a.deselect_all href="#" - = t('.deselect_all')
\ No newline at end of file + = t('.deselect_all') |
