mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Fixed report docx generation [SCI-5837]
This commit is contained in:
parent
bc1e307d30
commit
66d2e65114
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ module Reports::Docx::DrawMyModuleRepository
|
|||
my_module = subject.my_module
|
||||
repository = subject.repository
|
||||
repository = assigned_repository_or_snapshot(my_module, repository)
|
||||
return unless can_read_experiment?(@user, my_module.experiment) &&
|
||||
|
||||
return unless repository && can_read_experiment?(@user, my_module.experiment) &&
|
||||
(repository.is_a?(RepositorySnapshot) || can_read_repository?(@user, repository))
|
||||
|
||||
repository_data = my_module.repository_docx_json(repository)
|
||||
|
|
Loading…
Reference in a new issue