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
0a0d4ac2
Commit
0a0d4ac2
authored
Oct 02, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a couple of issues
parent
0643187c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
app/services/applications/create_service.rb
app/services/applications/create_service.rb
+1
-0
app/services/keys/base_service.rb
app/services/keys/base_service.rb
+1
-0
ee/app/services/ee/keys/create_service.rb
ee/app/services/ee/keys/create_service.rb
+0
-6
No files found.
app/services/applications/create_service.rb
View file @
0a0d4ac2
...
@@ -5,6 +5,7 @@ module Applications
...
@@ -5,6 +5,7 @@ module Applications
def
initialize
(
current_user
,
params
)
def
initialize
(
current_user
,
params
)
@current_user
=
current_user
@current_user
=
current_user
@params
=
params
@params
=
params
@ip_address
=
@params
.
delete
(
:ip_address
)
end
end
def
execute
def
execute
...
...
app/services/keys/base_service.rb
View file @
0a0d4ac2
...
@@ -4,6 +4,7 @@ module Keys
...
@@ -4,6 +4,7 @@ module Keys
def
initialize
(
user
,
params
)
def
initialize
(
user
,
params
)
@user
,
@params
=
user
,
params
@user
,
@params
=
user
,
params
@ip_address
=
@params
.
delete
(
:ip_address
)
end
end
def
notification_service
def
notification_service
...
...
ee/app/services/ee/keys/create_service.rb
View file @
0a0d4ac2
module
EE
module
EE
module
Keys
module
Keys
module
CreateService
module
CreateService
def
initialize
(
user
,
params
)
super
(
user
,
params
)
@ip_address
=
@params
.
delete
(
:ip_address
)
end
def
execute
def
execute
super
.
tap
do
|
key
|
super
.
tap
do
|
key
|
log_audit_event
(
key
)
log_audit_event
(
key
)
...
...
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