From 1f1b51357c4c1379021ab413ae7ce8e02a3ef23c Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:48:37 +0100 Subject: [PATCH] Let multiple users to manage office files in results [SCI-7757] (#4902) --- app/permissions/result.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/permissions/result.rb b/app/permissions/result.rb index 7730a5bce..e46db9ce1 100644 --- a/app/permissions/result.rb +++ b/app/permissions/result.rb @@ -8,7 +8,6 @@ Canaid::Permissions.register_for(Result) do can :manage_result do |user, result| !result.archived? && !result.my_module.archived_branch? && - result.unlocked?(result) && result.my_module.permission_granted?(user, MyModulePermissions::RESULTS_MANAGE) end