summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/preferences_controller.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 /app/controllers/profiles/preferences_controller.rb
parente2e0b175ae43bef44ba5fdc45b4a719aaae83422 (diff)
downloadgitlab-ce-b804db26485ea09dc93269898dc969ed692130a2.tar.gz
refactor update user service not to do auth checks
Diffstat (limited to 'app/controllers/profiles/preferences_controller.rb')
-rw-r--r--app/controllers/profiles/preferences_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/preferences_controller.rb b/app/controllers/profiles/preferences_controller.rb
index 6845256e9d8..1e557c47638 100644
--- a/app/controllers/profiles/preferences_controller.rb
+++ b/app/controllers/profiles/preferences_controller.rb
@@ -6,7 +6,7 @@ class Profiles::PreferencesController < Profiles::ApplicationController
def update
begin
- result = Users::UpdateService.new(current_user, user, preferences_params).execute
+ result = Users::UpdateService.new(user, preferences_params).execute
if result[:status] == :success
flash[:notice] = 'Preferences saved.'