Skip to content

Commit 3e811d6

Browse files
committed
Use CREATED_FROM_PARTNER flag
1 parent f7cb621 commit 3e811d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/email_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
def get_noreply_address(user=None) -> str:
7676
"""Full RFC 5322 formatted noreply address, e.g. '"SimpleLogin (noreply)" <noreply@sl.io>'"""
77-
if user and PartnerUser.get_by(user_id=user.id):
77+
if user and user.flags and User.flags & User.FLAG_CREATED_FROM_PARTNER > 0:
7878
return config.PARTNER_NOREPLY
7979
return config.NOREPLY
8080

0 commit comments

Comments
 (0)