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:
authorJames Lopez <james@jameslopez.es>2017-06-19 11:04:14 +0300
committerJames Lopez <james@jameslopez.es>2017-06-23 12:41:42 +0300
commit3bab585bec5529c06ba4b0c4ae7e953b99edf6d3 (patch)
tree2751c7f6bc3959204dbf5fb90d42f56c773650c6 /app/services/emails
parentad44af2faaaa872ee30922699f66ac78fa402336 (diff)
update to use emails destroy service
Diffstat (limited to 'app/services/emails')
-rw-r--r--app/services/emails/destroy_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/emails/destroy_service.rb b/app/services/emails/destroy_service.rb
index 5080c08c473..c5fbc32033b 100644
--- a/app/services/emails/destroy_service.rb
+++ b/app/services/emails/destroy_service.rb
@@ -3,7 +3,7 @@ module Emails
def execute(skip_authorization: false)
raise Gitlab::Access::AccessDeniedError unless skip_authorization || can_manage_emails?
- Email.find_by_email(@email).destroy!
+ Email.find_by_email(@email).destroy
end
end
end