mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Actually return 404 when requested asset doesn't exist [SCI-1994]
This commit is contained in:
parent
ab2955c9bb
commit
7dd9121072
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class AssetsController < ApplicationController
|
|||
|
||||
def load_vars
|
||||
@asset = Asset.find_by_id(params[:id])
|
||||
render_404 unless @asset
|
||||
return render_404 unless @asset
|
||||
|
||||
step_assoc = @asset.step
|
||||
result_assoc = @asset.result
|
||||
|
|
Loading…
Reference in a new issue