Fix for downloading assets not in current user team [SCI-9353]

This commit is contained in:
Martin Artnik 2023-09-27 14:13:34 +02:00
parent 3ce0779663
commit 2edba4e188

View file

@ -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