summaryrefslogtreecommitdiff
path: root/lib/api/notification_settings.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-23 11:34:07 +0200
committerJames Lopez <james@jameslopez.es>2017-06-23 11:41:43 +0200
commitb804db26485ea09dc93269898dc969ed692130a2 (patch)
tree48ac76727eed23a2815b14e8c5633bbb056f6972 /lib/api/notification_settings.rb
parente2e0b175ae43bef44ba5fdc45b4a719aaae83422 (diff)
downloadgitlab-ce-b804db26485ea09dc93269898dc969ed692130a2.tar.gz
refactor update user service not to do auth checks
Diffstat (limited to 'lib/api/notification_settings.rb')
-rw-r--r--lib/api/notification_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/notification_settings.rb b/lib/api/notification_settings.rb
index 5f88488ccee..5d113c94b22 100644
--- a/lib/api/notification_settings.rb
+++ b/lib/api/notification_settings.rb
@@ -35,7 +35,7 @@ module API
new_notification_email = params.delete(:notification_email)
if new_notification_email
- ::Users::UpdateService.new(current_user, current_user, notification_email: new_notification_email).execute
+ ::Users::UpdateService.new(current_user, notification_email: new_notification_email).execute
end
notification_setting.update(declared_params(include_missing: false))