Commit d92fd326 authored by Michal Čihař's avatar Michal Čihař

Check email on authenticated users only

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 33a31a65
......@@ -121,7 +121,7 @@ def can_edit(user, translation, permission):
"""
if translation.subproject.locked:
return False
if not user.email:
if user.is_authenticated() and not user.email:
return False
if check_owner(user, translation.subproject.project, permission):
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment