BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e6654447
Commit
e6654447
authored
Aug 23, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect "stopped impersonation" log message
Closes #21015
parent
148b8487
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
impersonations_controller.rb
app/controllers/admin/impersonations_controller.rb
+1
-1
impersonations_controller_spec.rb
spec/controllers/admin/impersonations_controller_spec.rb
+2
-0
No files found.
app/controllers/admin/impersonations_controller.rb
View file @
e6654447
...
...
@@ -7,7 +7,7 @@ class Admin::ImpersonationsController < Admin::ApplicationController
warden
.
set_user
(
impersonator
,
scope: :user
)
Gitlab
::
AppLogger
.
info
(
"User
#{
original_user
.
username
}
has stopped impersonating
#{
impersonato
r
.
username
}
"
)
Gitlab
::
AppLogger
.
info
(
"User
#{
impersonator
.
username
}
has stopped impersonating
#{
original_use
r
.
username
}
"
)
session
[
:impersonator_id
]
=
nil
...
...
spec/controllers/admin/impersonations_controller_spec.rb
View file @
e6654447
...
...
@@ -77,6 +77,8 @@ describe Admin::ImpersonationsController do
context
"when the impersonator is not blocked"
do
it
"redirects to the impersonated user's page"
do
expect
(
Gitlab
::
AppLogger
).
to
receive
(
:info
).
with
(
"User
#{
impersonator
.
username
}
has stopped impersonating
#{
user
.
username
}
"
).
and_call_original
delete
:destroy
expect
(
response
).
to
redirect_to
(
admin_user_path
(
user
))
...
...
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