Skip to content

Commit

Permalink
(bug) user is blocked in complete profile page after login
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed Apr 9, 2024
1 parent 6e41e22 commit 7c05fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def active_for_authentication?
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?) ||
Expand Down

0 comments on commit 7c05fcd

Please sign in to comment.