diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 01:23:04 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 01:23:04 +0800 |
commit | 2489332297b441b3ebc0c3df2e8ff14dc88a72cf (patch) | |
tree | 51d5155714091bc2d3a24957463ea41c07e75e66 /app/models/deploy_key.rb | |
parent | a8a879eebc805f27de9eb27fa05bce291ee931ff (diff) | |
download | gitlab-ce-2489332297b441b3ebc0c3df2e8ff14dc88a72cf.tar.gz |
Don't notify user for deploy keys, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18517263
Diffstat (limited to 'app/models/deploy_key.rb')
-rw-r--r-- | app/models/deploy_key.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/deploy_key.rb b/app/models/deploy_key.rb index aaacbd28470..053f2a11aa0 100644 --- a/app/models/deploy_key.rb +++ b/app/models/deploy_key.rb @@ -28,4 +28,10 @@ class DeployKey < Key def can_push_to?(project) can_push? && has_access_to?(project) end + + private + + # we don't want to notify the user for deploy keys + def notify_user + end end |