Redirect back to user profile page after abuse report

Now the reporter will see the fruits of their labor, namely, the red
icon!
This commit is contained in:
Robert Speicher 2016-01-04 18:46:43 -05:00
parent 6f4ea679d9
commit 0e60282e36
1 changed files with 5 additions and 2 deletions

View File

@ -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