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:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-27 17:09:11 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-30 11:05:06 +0300
commit7dbf114f595f8ff3ff41339d81d41b7722b97d2a (patch)
treedcaab3b79250107e9ba9deb607c408059d24191b /app/services/system_hooks_service.rb
parent6d7384f59525e2d54c30011237499c27bde145ef (diff)
Use the correct project visibility in system hooks
Diffstat (limited to 'app/services/system_hooks_service.rb')
-rw-r--r--app/services/system_hooks_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/system_hooks_service.rb b/app/services/system_hooks_service.rb
index a1c2f8d0180..5d275967821 100644
--- a/app/services/system_hooks_service.rb
+++ b/app/services/system_hooks_service.rb
@@ -83,7 +83,7 @@ class SystemHooksService
project_id: model.id,
owner_name: owner.name,
owner_email: owner.respond_to?(:email) ? owner.email : "",
- project_visibility: Project.visibility_levels.key(model.visibility_level_value).downcase
+ project_visibility: model.visibility.downcase
}
end