Show More
@@ -365,9 +365,7 b' class MyAccountController(BaseController' | |||
|
365 | 365 | @jsonify |
|
366 | 366 | def my_notifications_toggle_visibility(self): |
|
367 | 367 | user = c.rhodecode_user.get_instance() |
|
368 | user_data = user.user_data | |
|
369 |
status |
|
|
370 | user_data['notification_status'] = not status | |
|
371 | user.user_data = user_data | |
|
368 | new_status = not user.user_data.get('notification_status', True) | |
|
369 | user.update_userdata(notification_status=new_status) | |
|
372 | 370 | Session().commit() |
|
373 | return user_data['notification_status'] | |
|
371 | return user.user_data['notification_status'] |
General Comments 0
You need to be logged in to leave comments.
Login now