---
 common/appenginepatch/ragendja/auth/decorators.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/appenginepatch/ragendja/auth/decorators.py b/
common/appenginepatch/ragendja/auth/decorators.py
index ca7c6f3..9b07b76 100644
--- a/common/appenginepatch/ragendja/auth/decorators.py
+++ b/common/appenginepatch/ragendja/auth/decorators.py
@@ -3,6 +3,7 @@ from django.contrib.auth.decorators import
login_required
 from functools import wraps
 from ragendja.auth.views import google_redirect_to_login
 from ragendja.template import render_to_response
+from django.http import HttpResponseForbidden

 def staff_only(view):
     """
@@ -12,7 +13,7 @@ def staff_only(view):
     def wrapped(request, *args, **kwargs):
         if request.user.is_active and request.user.is_staff:
             return view(request, *args, **kwargs)
-        return render_to_response(request, 'no_access.html')
+        return HttpResponseForbidden(render_to_response(request,
'no_access.html'))
     return wraps(view)(wrapped)

 def google_login_required(function):
--
1.6.5.1.1367.gcd48

--

You received this message because you are subscribed to the Google Groups 
"app-engine-patch" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/app-engine-patch?hl=en.


Reply via email to