From 12f1456e4fab6ea3d16b7e7295bd779ca395dc11 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 17 Mar 2023 14:40:19 +0100 Subject: [PATCH] Fix permission for draft revision comment [SCI-8160] --- app/views/protocols/index/_protocol_versions_modal.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/protocols/index/_protocol_versions_modal.html.erb b/app/views/protocols/index/_protocol_versions_modal.html.erb index 7ef19f6f8..ee7060128 100644 --- a/app/views/protocols/index/_protocol_versions_modal.html.erb +++ b/app/views/protocols/index/_protocol_versions_modal.html.erb @@ -44,7 +44,7 @@ <% end %>
- <% if can_manage_protocol_in_repository?(draft) %> + <% if can_publish_protocol_in_repository?(draft) %>
<%= draft.version_comment %>
- <%= text_area_tag 'version_comment', draft.version_comment, disabled: can_publish_protocol_in_repository?(@protocol), class: 'smart-text-area hidden' %> + <%= text_area_tag 'version_comment', draft.version_comment, disabled: true, class: 'smart-text-area hidden' %>
<%= t('general.cancel') %>