Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Beadle <tbeadle@arbor.net>2016-01-06 19:42:31 +0300
committerTommy Beadle <tbeadle@arbor.net>2016-01-06 19:49:59 +0300
commit4d41294d71f2a8910a3aa5d475f8eb3923ca3531 (patch)
tree9e39158622230a95b25826b23f5add4659c58103 /app/services/system_hooks_service.rb
parentfc386b65d090848322b70ca915d9140482a51494 (diff)
Include the user_id in user_*_team system hooks.
This fixes an issue where the user_id is not included in the data for user_add_to_team and user_remove_from_team system hooks. The documentation already states that the user_id should be included.
Diffstat (limited to 'app/services/system_hooks_service.rb')
-rw-r--r--app/services/system_hooks_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/system_hooks_service.rb b/app/services/system_hooks_service.rb
index 6dc854ec33d..9f677444f1f 100644
--- a/app/services/system_hooks_service.rb
+++ b/app/services/system_hooks_service.rb
@@ -101,6 +101,7 @@ class SystemHooksService
project_id: model.project.id,
user_name: model.user.name,
user_email: model.user.email,
+ user_id: model.user.id,
access_level: model.human_access,
project_visibility: Project.visibility_levels.key(model.project.visibility_level_field).downcase
}