summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-22 08:55:07 +0200
committerJames Lopez <james@jameslopez.es>2017-06-23 11:41:42 +0200
commit785cbb79e255c8369ca5eb916207304f39d188ad (patch)
treeabd792d12be1f35d868db591793311eb32d92370 /lib/api/users.rb
parent0c8e7f49d1ef32ed5ea1bdd7e26dd5e169bad359 (diff)
downloadgitlab-ce-785cbb79e255c8369ca5eb916207304f39d188ad.tar.gz
refactor emails service
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index 190e2e71884..07e7c774f2b 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -275,10 +275,6 @@ module API
not_found!('Email') unless email
Emails::DestroyService.new(current_user, user, email: email.email).execute(skip_authorization: true)
-
- ::Users::UpdateService.new(current_user, user).execute do |user|
- user.update_secondary_emails!
- end
end
desc 'Delete a user. Available only for admins.' do
@@ -509,10 +505,6 @@ module API
not_found!('Email') unless email
Emails::DestroyService.new(current_user, current_user, email: email.email).execute
-
- ::Users::UpdateService.new(current_user, current_user).execute do |user|
- user.update_secondary_emails!
- end
end
desc 'Get a list of user activities'