Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix reference to user object in error message

Oliver Günther09770d43693c
diff --git a/modules/ldap_groups/app/services/ldap_groups/synchronize_groups_service.rb b/modules/ldap_groups/app/services/ldap_groups/synchronize_groups_service.rb
index d18f1ead64b..6aeb2665525 100644
--- a/modules/ldap_groups/app/services/ldap_groups/synchronize_groups_service.rb
+++ b/modules/ldap_groups/app/services/ldap_groups/synchronize_groups_service.rb
@@ -72,7 +72,7 @@ module LdapGroups
if call.success?
Rails.logger.info("[LDAP groups] User '#{call.result.login}' created")
else
- Rails.logger.error("[LDAP groups] User '#{user}' could not be created: #{call.message}")
+ Rails.logger.error("[LDAP groups] User '#{call.result&.login}' could not be created: #{call.message}")
end
end