mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 06:44:55 +08:00
Add team_id when asset is creating
This commit is contained in:
parent
8176ce3a9d
commit
8f0c3bd2ce
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class AssetsController < ApplicationController
|
||||||
render_403 && return unless %w(docx xlsx pptx).include?(params[:file_type])
|
render_403 && return unless %w(docx xlsx pptx).include?(params[:file_type])
|
||||||
|
|
||||||
# Asset validation
|
# Asset validation
|
||||||
asset = Asset.new(created_by: current_user)
|
asset = Asset.new(created_by: current_user, team: current_team)
|
||||||
asset.file.attach(io: StringIO.new,
|
asset.file.attach(io: StringIO.new,
|
||||||
filename: "#{params[:file_name]}.#{params[:file_type]}",
|
filename: "#{params[:file_name]}.#{params[:file_type]}",
|
||||||
content_type: wopi_content_type(params[:file_type]))
|
content_type: wopi_content_type(params[:file_type]))
|
||||||
|
|
Loading…
Reference in a new issue