diff options
| author | Xinhui | 2016-10-10 14:26:37 +0200 | 
|---|---|---|
| committer | Xinhui | 2016-10-10 14:26:37 +0200 | 
| commit | 765747615d237ffb0953ec86a57ddff54713f912 (patch) | |
| tree | b8391b99f05fee637f494d1bef1da85f4cf393b9 /app/views/networks | |
| parent | ab695004ec171a5730bf0cd0431084c76986742e (diff) | |
| download | chouette-core-765747615d237ffb0953ec86a57ddff54713f912.tar.bz2 | |
Group of line policy in views
Diffstat (limited to 'app/views/networks')
| -rw-r--r-- | app/views/networks/index.html.slim | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/app/views/networks/index.html.slim b/app/views/networks/index.html.slim index bc32d273c..587552729 100644 --- a/app/views/networks/index.html.slim +++ b/app/views/networks/index.html.slim @@ -18,6 +18,7 @@  - content_for :sidebar do    ul.actions -    li -      = link_to t('networks.actions.new'), new_line_referential_network_path(@line_referential), class: 'add' -    br
\ No newline at end of file +    - if policy(Chouette::Network).create? +      li +        = link_to t('networks.actions.new'), new_line_referential_network_path(@line_referential), class: 'add' +      br | 
