diff options
author | James Lopez <james@jameslopez.es> | 2017-06-16 15:14:46 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-23 11:41:42 +0200 |
commit | ad44af2faaaa872ee30922699f66ac78fa402336 (patch) | |
tree | e264d9bf4e57dc3468281167374da3f53e7ebe57 /lib/api/users.rb | |
parent | 7aaf3692b3856fa4d11bfc51ef4ab18c7405fc06 (diff) | |
download | gitlab-ce-ad44af2faaaa872ee30922699f66ac78fa402336.tar.gz |
fixed specs
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r-- | lib/api/users.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 2c632c85243..f79b61ad85e 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -511,7 +511,7 @@ module API not_found!('Email') unless email email.destroy - ::Users::UpdateService.new(current_user, user).execute do |user| + ::Users::UpdateService.new(current_user, current_user).execute do |user| user.update_secondary_emails! end end |