mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Fix for downloading assets not in current user team [SCI-9353]
This commit is contained in:
parent
3ce0779663
commit
2edba4e188
1 changed files with 2 additions and 0 deletions
|
@ -319,6 +319,8 @@ class AssetsController < ApplicationController
|
|||
@asset = Asset.find_by(id: params[:id])
|
||||
return render_404 unless @asset
|
||||
|
||||
current_user.permission_team = @asset.team
|
||||
|
||||
@assoc ||= @asset.step
|
||||
@assoc ||= @asset.result
|
||||
@assoc ||= @asset.repository_cell
|
||||
|
|
Loading…
Reference in a new issue