mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-28 02:27:57 +08:00
Fix permission check for experiment moving (#3783)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
10556ea960
commit
7425225520
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ Canaid::Permissions.register_for(Experiment) do
|
|||
end
|
||||
|
||||
can :manage_all_experiment_my_modules do |user, experiment|
|
||||
experiment.my_modules == experiment.my_modules.managable_by_user(user)
|
||||
experiment.my_modules.where.not(id: experiment.my_modules.managable_by_user(user)).none?
|
||||
end
|
||||
|
||||
can :archive_experiment do |user, experiment|
|
||||
|
|
Loading…
Reference in a new issue