diff options
| author | cedricnjanga | 2017-07-25 15:56:49 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-07-25 15:56:49 +0200 |
| commit | c5c6b4f40dcc92d52b47f969a24a73f42de34b66 (patch) | |
| tree | cf311a78ecfe2138d92ae45905cd3669895ebd0d /app | |
| parent | 2555152d66b5189350f4bfdc9b4b0658d959b5be (diff) | |
| download | chouette-core-c5c6b4f40dcc92d52b47f969a24a73f42de34b66.tar.bz2 | |
Hide import button depending on Referential#create? policy
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/workbenches/show.html.slim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim index bb8b71ab2..a9ce2f704 100644 --- a/app/views/workbenches/show.html.slim +++ b/app/views/workbenches/show.html.slim @@ -7,8 +7,8 @@ / Below is secundary actions & optional contents (filters, ...) .row.mb-sm .col-lg-12.text-right - = link_to t('actions.import'), workbench_imports_path(@workbench), class: 'btn btn-primary' - if policy(Referential).create? + = link_to t('actions.import'), workbench_imports_path(@workbench), class: 'btn btn-primary' = link_to t('actions.add'), new_referential_path(workbench_id: @workbench), class: 'btn btn-primary' / PageContent |
