]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/context.py
Remove footer link to squatted domain
[osqa.git] / forum / context.py
index ce7d1b1eed87aec1fa630f19b7292dd579b6adf7..957b5f91d800c55d2a5924f0d50abdd958dffe90 100644 (file)
@@ -4,27 +4,14 @@ def application_settings(context):
     return {'settings': settings}
 
 def auth_processor(request):
-    """
-    Returns context variables required by apps that use Django's authentication
-    system.
-
-    If there is no 'user' attribute in the request, uses AnonymousUser (from
-    django.contrib.auth).
-    """
     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),
     }