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
1a22f0a2
Commit
1a22f0a2
authored
Apr 16, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix audit logging for project deploy keys
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
d209b979
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
app/controllers/projects/deploy_keys_controller.rb
app/controllers/projects/deploy_keys_controller.rb
+3
-0
No files found.
app/controllers/projects/deploy_keys_controller.rb
View file @
1a22f0a2
...
...
@@ -44,13 +44,16 @@ class Projects::DeployKeysController < Projects::ApplicationController
def
enable
@key
=
accessible_keys
.
find
(
params
[
:id
])
@project
.
deploy_keys
<<
@key
log_audit_event
(
@key
.
title
,
action: :create
)
redirect_to
namespace_project_deploy_keys_path
(
@project
.
namespace
,
@project
)
end
def
disable
@key
=
accessible_keys
.
find
(
params
[
:id
])
@project
.
deploy_keys_projects
.
find_by
(
deploy_key_id:
params
[
:id
]).
destroy
log_audit_event
(
@key
.
title
,
action: :destroy
)
redirect_to
:back
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