fixed no-email edit in profile

This commit is contained in:
mdipierro
2018-04-02 23:53:05 -05:00
parent 2237076a5a
commit cec14c741a
4 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -443,7 +443,9 @@ class AuthAPI(object):
# log messages should not be translated
if type(description).__name__ == 'lazyT':
description = description.m
self.table_event().insert(description=str(description % vars), origin=origin, user_id=user_id)
if self.table_user()[user_id]:
self.table_event().insert(
description=str(description % vars), origin=origin, user_id=user_id)
def id_group(self, role):
"""