summaryrefslogtreecommitdiff
path: root/app/models/deploy_key.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-18 01:23:04 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-18 01:23:04 +0800
commit2489332297b441b3ebc0c3df2e8ff14dc88a72cf (patch)
tree51d5155714091bc2d3a24957463ea41c07e75e66 /app/models/deploy_key.rb
parenta8a879eebc805f27de9eb27fa05bce291ee931ff (diff)
downloadgitlab-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.rb6
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