mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 15:33:50 +08:00
Merge pull request #1340 from okriuchykhin/ok_SCI_2793
Fix helpers to use with export all [SCI-2793]
This commit is contained in:
commit
ababa0b157
2 changed files with 2 additions and 4 deletions
|
@ -133,7 +133,6 @@ module ApplicationHelper
|
|||
match = el.match(sa_user)
|
||||
user = User.find_by_id(match[2].base62_decode)
|
||||
next unless user
|
||||
team ||= current_team
|
||||
popover_for_user_name(user, team)
|
||||
end
|
||||
new_text
|
||||
|
|
|
@ -24,8 +24,7 @@ module TinyMceHelper
|
|||
text.gsub(regex) do |el|
|
||||
match = el.match(regex)
|
||||
img = TinyMceAsset.find_by_id(match[1])
|
||||
next unless img && img.team == current_team
|
||||
next unless check_image_permissions(obj, img)
|
||||
next unless img && check_image_permissions(obj, img)
|
||||
if pdf_export_ready
|
||||
report_image_asset_url(img, :tiny_mce_asset, 'tiny-mce-pdf-ready')
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue