X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/febc8df810701062ed45c129c0e30c504db28849..067167bd098e14974dc885a23f04a1feedbf2155:/forum/context.py diff --git a/forum/context.py b/forum/context.py index 641af38..957b5f9 100644 --- a/forum/context.py +++ b/forum/context.py @@ -6,18 +6,12 @@ def application_settings(context): def auth_processor(request): if hasattr(request, 'user'): user = request.user - if user.is_authenticated(): - messages = user.message_set.all() - else: - messages = None else: from django.contrib.auth.models import AnonymousUser user = AnonymousUser() - messages = None from django.core.context_processors import PermWrapper return { 'user': user, - 'messages': messages, 'perms': PermWrapper(user), }