1 from django.http import HttpResponseRedirect
2 from django.core.urlresolvers import reverse
6 def wrap(request, *args, **kwargs):
7 if 'HTTP_SHIB_SESSION_ID' not in request.META or not request.META['HTTP_SHIB_SESSION_ID']:
8 return HttpResponseRedirect(reverse('login'))
9 return f(request, *args, **kwargs)
11 wrap.__doc__=f.__doc__
12 wrap.__name__=f.__name__