aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2018-04-09 14:16:11 +0200
committerAlban Peignier2018-04-09 14:16:11 +0200
commit98c723ee956b478e8ffb466e461c9889a272efdf (patch)
tree5e4a2e6268b6c81b58dfb5e66943bff8df101cd4
parent2ef506e97dd0e65a475bd9dd67a4f645d3eac045 (diff)
downloadchouette-core-98c723ee956b478e8ffb466e461c9889a272efdf.tar.bz2
Hide merge create button in workbench_outputs/show. Refs #6466
-rw-r--r--app/views/workbench_outputs/show.html.slim3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/workbench_outputs/show.html.slim b/app/views/workbench_outputs/show.html.slim
index a9e106dbb..b310119e6 100644
--- a/app/views/workbench_outputs/show.html.slim
+++ b/app/views/workbench_outputs/show.html.slim
@@ -6,7 +6,8 @@
.row.mb-sm
.col-lg-12.text-right
= link_to t('.see_current_output'), referential_path(@workbench.output.current), class: 'btn btn-primary' if @workbench.output&.current
- = link_to t('merges.actions.create'), new_workbench_merge_path(@workbench), class: 'btn btn-primary'
+ - if policy(Merge).create?
+ = link_to t('merges.actions.create'), new_workbench_merge_path(@workbench), class: 'btn btn-primary'
.page_content
.container-fluid