mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-11 15:13:25 +08:00
SCI-4674 check if experiment and projects are active during snapshot creation
This commit is contained in:
parent
5994e8c6a6
commit
5f195b3622
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ Canaid::Permissions.register_for(MyModule) do
|
|||
assign_repository_rows_to_module
|
||||
assign_sample_to_module
|
||||
complete_module
|
||||
create_comments_in_module)
|
||||
create_comments_in_module
|
||||
create_repository_snapshot
|
||||
manage_repository_snapshots)
|
||||
.each do |perm|
|
||||
can perm do |_, my_module|
|
||||
my_module.active? &&
|
||||
|
|
Loading…
Reference in a new issue