mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 23:03:00 +08:00
Merge pull request #5788 from aignatov-bio/ai-sci-8870-fixed-rtf-preview-for-new-files
Fix rtf preview for new images [SCI-8870]
This commit is contained in:
commit
4b2f520779
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ module ActiveStorage
|
|||
|
||||
current_user.permission_team = asset.team || current_team
|
||||
|
||||
return true if !asset.saved && can_read_team?(asset.team)
|
||||
|
||||
case asset.object_type
|
||||
when 'MyModule'
|
||||
render_403 unless can_read_my_module?(asset.object)
|
||||
|
|
Loading…
Reference in a new issue