aboutsummaryrefslogtreecommitdiff
path: root/users/views.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-08-29 13:14:33 -0400
committerBobby <[email protected]>2022-08-29 13:14:33 -0400
commit043693f0825285ffd130e4e9cdfd396e741852ff (patch)
tree0a154bd9d5f4cfd260aed234f226b5c6c9445ec6 /users/views.py
parent1a7bc7ab002b75dc3a8d8f780fb71d1691eb2816 (diff)
downloadthatcomputerscientist-043693f0825285ffd130e4e9cdfd396e741852ff.tar.xz
thatcomputerscientist-043693f0825285ffd130e4e9cdfd396e741852ff.zip
Disable Homepage, Profile Visibility and User Specific URL temporarily
Diffstat (limited to 'users/views.py')
-rw-r--r--users/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/views.py b/users/views.py
index 03773a7f..a269c2ef 100644
--- a/users/views.py
+++ b/users/views.py
@@ -50,11 +50,14 @@ def update_user(request):
location = request.POST['location']
gravatar_email = request.POST['gravatarEmail']
bio = request.POST['bio']
- is_public = True if request.POST['isPublic'] == '1' else False
+ is_public = False
email_public = False
if 'emailPublic' in request.POST:
email_public = True if request.POST['emailPublic'] == '1' and is_public else False
+ if 'isPublic' in request.POST:
+ is_public = True if request.POST['isPublic'] == '1' and is_public else False
+
if username is not None:
user = User.objects.get(username=username)
user.first_name = first_name