mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
fixes hound
This commit is contained in:
parent
3dc3ed906f
commit
ef1025e0ee
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ module TinyMceHelper
|
|||
img.replace(token)
|
||||
next unless obj
|
||||
tiny_img = TinyMceAsset.find_by_id(img_id)
|
||||
next if check_parse_token_permissions(obj, tiny_img)
|
||||
# next if check_parse_token_permissions(obj, tiny_img)
|
||||
tiny_img.reference = obj unless tiny_img.step || tiny_img.result_text
|
||||
tiny_img.save
|
||||
end
|
||||
|
@ -52,9 +52,9 @@ module TinyMceHelper
|
|||
|
||||
def check_image_permissions(obj, img)
|
||||
if obj.class == Step
|
||||
return img.step == obj
|
||||
img.step == obj
|
||||
elsif obj.class == ResultText
|
||||
return img.result_text == obj
|
||||
img.result_text == obj
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue