Commit 9daa1d51 authored by Michal Čihař's avatar Michal Čihař

Prevent check for anonymous users

parent 9a6e2ee8
......@@ -36,7 +36,7 @@ logger = logging.getLogger('weblate')
def home(request):
projects = Project.objects.all()
if request.user.get_full_name() == '':
if not request.user.is_anonymous() and request.user.get_full_name() == '':
messages.warning(request, _('Please set your full name in profile.'))
# Load user translations if user is authenticated
......
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