Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
62e1dd28
Commit
62e1dd28
authored
Jun 10, 2021
by
dcouture
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After an abuse report, redirect to root
parent
0a79c85b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/abuse_reports_controller.rb
app/controllers/abuse_reports_controller.rb
+1
-1
spec/controllers/abuse_reports_controller_spec.rb
spec/controllers/abuse_reports_controller_spec.rb
+1
-1
No files found.
app/controllers/abuse_reports_controller.rb
View file @
62e1dd28
...
...
@@ -19,7 +19,7 @@ class AbuseReportsController < ApplicationController
@abuse_report
.
notify
message
=
_
(
"Thank you for your report. A GitLab administrator will look into it shortly."
)
redirect_to
@abuse_report
.
user
,
notice:
message
redirect_to
root_path
,
notice:
message
else
render
:new
end
...
...
spec/controllers/abuse_reports_controller_spec.rb
View file @
62e1dd28
...
...
@@ -59,7 +59,7 @@ RSpec.describe AbuseReportsController do
it
'redirects back to the reported user'
do
post
:create
,
params:
{
abuse_report:
attrs
}
expect
(
response
).
to
redirect_to
user
expect
(
response
).
to
redirect_to
root_path
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment