old_contents: # Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.
  # Use of this source code is governed by a BSD License (see LICENSE).
  
  from django.core.urlresolvers import reverse
  
  def conference(request):
      return {'conference' : request.conference}
  
  def user_type(request):
      if not request.user.is_authenticated():
          return {}
      elif request.user.is_advisor():
          return {'user_type': 'advisor'}
      elif request.user.is_chair():
          return {'user_type': 'chair'}
  
  def default_path(request):
      if not request.user.is_authenticated():
          return {'default_path': reverse('accounts:login')}
  
new_contents: # Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.
  # Use of this source code is governed by a BSD License (see LICENSE).
  
  from django.core.urlresolvers import reverse
  
  def conference(request):
      return {'conference' : request.conference}
  
  def user_type(request):
      if not request.user.is_authenticated():
          return {}
      elif request.user.is_advisor():
          return {'user_type': 'advisor'}
      elif request.user.is_chair():
          return {'user_type': 'chair'}
  
  def default_path(request):
      if not request.user.is_authenticated():
          return {'default_path': reverse('accounts:login')}
      return {}
  
subject: Fix default_path context processor.