Merge pull request #6247 from aignatov-bio/ai-sci-9260-fix-wopi

Fix wopi and pdf preview [SCI-9260]
This commit is contained in:
aignatov-bio 2023-09-19 13:17:42 +02:00 committed by GitHub
commit 5626bdef4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -252,7 +252,7 @@ class AssetsController < ApplicationController
edit_url = edit_asset_url(step_asset.asset_id)
elsif params[:element_type] == 'Result'
my_module = MyModule.find(params[:element_id].to_i)
my_module = Result.find(params[:element_id].to_i).my_module
render_403 and return unless can_manage_my_module?(my_module)
# First create result and then the asset

View file

@ -29,5 +29,6 @@
<%= javascript_include_tag "handsontable.full" %>
<%= render partial: "shared/formulas_libraries" %>
<%= render 'shared/tiny_mce_packs' %>
<%= javascript_include_tag 'pdf_js' %>
<%= stylesheet_link_tag 'pdf_js_styles' %>
<%= javascript_include_tag 'vue_results' %>