mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
(bug) user is blocked in complete profile page after login
This commit is contained in:
parent
6e41e22ae1
commit
7c05fcd90a
@ -1,6 +1,7 @@
|
||||
# Changelog Fab-manager
|
||||
|
||||
## Next release
|
||||
- Fix a bug: user is blocked in complete profile page after login
|
||||
|
||||
## v6.3.18 2024 Avril 8
|
||||
|
||||
|
@ -115,7 +115,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def need_completion?
|
||||
(Setting.get('gender_required') && statistic_profile.gender.blank?) ||
|
||||
(Setting.get('gender_required') && statistic_profile.gender.nil?) ||
|
||||
profile.first_name.blank? || profile.last_name.blank? || username.blank? ||
|
||||
email.blank? || encrypted_password.blank? || group_id.nil? ||
|
||||
(Setting.get('birthday_required') && statistic_profile.birthday.blank?) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user