diff options
| author | Bobby <[email protected]> | 2022-08-02 00:17:42 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-08-02 00:17:42 +0530 |
| commit | d5c04b8b22199adef77052f4c01777673f752fd4 (patch) | |
| tree | 73c4d8361e6d3ce396d31eff4b5e646ed345a1ba | |
| parent | 8c9ce365e4bd9c12146859dfb69fa415a237405f (diff) | |
| download | thatcomputerscientist-d5c04b8b22199adef77052f4c01777673f752fd4.tar.xz thatcomputerscientist-d5c04b8b22199adef77052f4c01777673f752fd4.zip | |
Fix: Email Visibility to Private when account turns Private
| -rw-r--r-- | users/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/views.py b/users/views.py index ce3b2c6f..03773a7f 100644 --- a/users/views.py +++ b/users/views.py @@ -53,7 +53,7 @@ def update_user(request): is_public = True if request.POST['isPublic'] == '1' else False email_public = False if 'emailPublic' in request.POST: - email_public = True if request.POST['emailPublic'] == '1' else False + email_public = True if request.POST['emailPublic'] == '1' and is_public else False if username is not None: user = User.objects.get(username=username) |
