mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-01 09:24:59 +08:00
Fix rtf preview for new images [SCI-8870]
This commit is contained in:
parent
063c1209ba
commit
d37f335f17
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…
Add table
Reference in a new issue