From e6413454e0cc76383b4cd7db6b4ffb6cb8bb781d Mon Sep 17 00:00:00 2001 From: "karel.picman@lbcfree.net" Date: Mon, 22 Jun 2020 10:07:44 +0200 Subject: [PATCH] Edit must be enabled if the document is unlockable --- app/views/dmsf_context_menus/_file.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/dmsf_context_menus/_file.html.erb b/app/views/dmsf_context_menus/_file.html.erb index f94169d8..5cf5c158 100644 --- a/app/views/dmsf_context_menus/_file.html.erb +++ b/app/views/dmsf_context_menus/_file.html.erb @@ -22,7 +22,7 @@
  • <%= context_menu_link l(:button_edit), dmsf_file_path(id: dmsf_file), class: 'icon icon-edit', - disabled: !allowed || locked %> + disabled: !allowed || (locked && !unlockable) %>
  • <%= link_to "#{l(:button_copy)}/#{l(:button_move)}", copy_file_path(id: dmsf_file),