Ticket #12463: user_passes_test_decorator.diff
File user_passes_test_decorator.diff, 635 bytes (added by , 15 years ago) |
---|
-
django/contrib/auth/decorators.py
74 74 return _CheckLogin(view_func, self.test_func, self.login_url, self.redirect_field_name) 75 75 76 76 def __call__(self, request, *args, **kwargs): 77 if self.test_func(request.user ):77 if self.test_func(request.user, *args, **kwargs): 78 78 return self.view_func(request, *args, **kwargs) 79 79 path = urlquote(request.get_full_path()) 80 80 tup = self.login_url, self.redirect_field_name, path