mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Let multiple users to manage office files in results [SCI-7757] (#4902)
This commit is contained in:
parent
a2a9e59518
commit
1f1b51357c
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue