]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/context.py
Adds a new function in the profile menu for admins to suspend users, indefinetly...
[osqa.git] / forum / context.py
index ce7d1b1eed87aec1fa630f19b7292dd579b6adf7..641af38243d484d10d338e9ed8c57fdead6b78a4 100644 (file)
@@ -4,13 +4,6 @@ def application_settings(context):
     return {'settings': settings}
 
 def auth_processor(request):
     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():
     if hasattr(request, 'user'):
         user = request.user
         if user.is_authenticated():