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.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/users/update_service.rb b/app/services/users/update_service.rb
index f0e9f2b7656..b69720eefd6 100644
--- a/app/services/users/update_service.rb
+++ b/app/services/users/update_service.rb
@@ -60,11 +60,7 @@ module Users
end
def discard_read_only_attributes
- if Feature.enabled?(:ldap_readonly_attributes, default_enabled: true)
- params.reject! { |key, _| @user.read_only_attribute?(key.to_sym) }
- else
- discard_synced_attributes
- end
+ discard_synced_attributes
end
def discard_synced_attributes