Let multiple users to manage office files in results [SCI-7757] (#4902)

This commit is contained in:
aignatov-bio 2023-01-30 17:48:37 +01:00 committed by GitHub
parent a2a9e59518
commit 1f1b51357c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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