added Insecure dor vuln

This commit is contained in:
Ken Johnson
2013-06-03 01:29:16 -04:00
parent 912c34a26e
commit 14251e6f39
+6 -1
View File
@@ -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