1
0
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:
Du Peng 2024-04-09 09:28:49 +02:00
parent 6e41e22ae1
commit 7c05fcd90a
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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?) ||