mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-30 17:04:31 +08:00
Add missing .experiment to can_unlink_protocol
This commit is contained in:
parent
b6ccecf478
commit
6879521a75
1 changed files with 2 additions and 2 deletions
|
@ -681,8 +681,8 @@ module PermissionHelper
|
|||
if protocol.linked?
|
||||
my_module = protocol.my_module
|
||||
my_module.active? &&
|
||||
my_module.project.active? &&
|
||||
is_user_or_higher_of_project(my_module.project) &&
|
||||
my_module.experiment.project.active? &&
|
||||
is_user_or_higher_of_project(my_module.experiment.project) &&
|
||||
my_module.experiment.active?
|
||||
else
|
||||
false
|
||||
|
|
Loading…
Add table
Reference in a new issue