summaryrefslogtreecommitdiff
path: root/app/services/users/update_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/users/update_service.rb')
-rw-r--r--app/services/users/update_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/users/update_service.rb b/app/services/users/update_service.rb
index ff08c806319..23c67231a29 100644
--- a/app/services/users/update_service.rb
+++ b/app/services/users/update_service.rb
@@ -17,6 +17,7 @@ module Users
yield(@user) if block_given?
user_exists = @user.persisted?
+ @user.user_detail # prevent assignment
discard_read_only_attributes
assign_attributes