mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
fixed security issue
This commit is contained in:
parent
3d5a42cc27
commit
7c363d5ade
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ class ResultsController < ApplicationController
|
|||
|
||||
def load_vars
|
||||
@result = Result.find_by_id(params[:id])
|
||||
return render_403 unless @result
|
||||
@my_module = @result.my_module
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue