diff options
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 |