added Insecure dor vuln
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
class WorkInfoController < ApplicationController
|
||||
|
||||
def index
|
||||
@user = current_user
|
||||
@user = User.find_by_user_id(params[:user_id])
|
||||
if !(@user)
|
||||
flash[:error] = "Sorry, no user with that user id exists"
|
||||
redirect_to home_dashboard_index_path
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user