Revision: 653
Author: batiste.bieler
Date: Mon Aug 24 01:20:35 2009
Log: Fix issue 155
http://code.google.com/p/django-page-cms/source/detail?r=653
Modified:
/trunk/pages/admin/__init__.py
=======================================
--- /trunk/pages/admin/__init__.py Thu Aug 20 09:26:45 2009
+++ /trunk/pages/admin/__init__.py Mon Aug 24 01:20:35 2009
@@ -359,6 +359,8 @@
def list_pages(self, request, template_name=None, extra_context=None):
"""List root pages"""
+ if not admin.site.has_permission(request):
+ return admin.site.login(request)
# HACK: overrides the changelist template and later resets it to
None
if template_name:
self.change_list_template = template_name
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" 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/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---