aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorcedricnjanga2017-07-25 15:56:49 +0200
committercedricnjanga2017-07-25 15:56:49 +0200
commitc5c6b4f40dcc92d52b47f969a24a73f42de34b66 (patch)
treecf311a78ecfe2138d92ae45905cd3669895ebd0d /app
parent2555152d66b5189350f4bfdc9b4b0658d959b5be (diff)
downloadchouette-core-c5c6b4f40dcc92d52b47f969a24a73f42de34b66.tar.bz2
Hide import button depending on Referential#create? policy
Diffstat (limited to 'app')
-rw-r--r--app/views/workbenches/show.html.slim2
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