Commit 552a556
committed
fix(auth): default public_profile_allow_chat_with_me to true for new users
Aligns the User entity constructor and Doctrine column mapping so both
agree with the 2023 migration's DB-level default (1/true), closing the
code/DB contradiction flagged in ClickUp 86bbdxzt6. Previously the
constructor set false while the DB default was already 1, so new
accounts silently diverged from the intended on-by-default chat
setting once any code path relied on the DB default instead of the
explicit ORM insert.
Adds a unit test asserting a freshly constructed User defaults to
chat-allowed true.1 parent c1e2ba0 commit 552a556
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
0 commit comments