diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-04 18:46:43 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-04 18:46:43 -0500 |
commit | 0e60282e36faab8b0f4faee0b71716987df28416 (patch) | |
tree | 0e2d8af5435927f9dcc1b2280c1d6a1ae31dbcaf /app | |
parent | 6f4ea679d9ac18509df9216cef14f5d74ad19212 (diff) | |
download | gitlab-ce-0e60282e36faab8b0f4faee0b71716987df28416.tar.gz |
Redirect back to user profile page after abuse report
Now the reporter will see the fruits of their labor, namely, the red
icon!
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/abuse_reports_controller.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/controllers/abuse_reports_controller.rb b/app/controllers/abuse_reports_controller.rb index 20bc5173f1d..5718fd22de9 100644 --- a/app/controllers/abuse_reports_controller.rb +++ b/app/controllers/abuse_reports_controller.rb @@ -14,7 +14,7 @@ class AbuseReportsController < ApplicationController end message = "Thank you for your report. A GitLab administrator will look into it shortly." - redirect_to root_path, notice: message + redirect_to @abuse_report.user, notice: message else render :new end @@ -23,6 +23,9 @@ class AbuseReportsController < ApplicationController private def report_params - params.require(:abuse_report).permit(:user_id, :message) + params.require(:abuse_report).permit(%i( + message + user_id + )) end end |