          """
          Returns True if the given HttpRequest has permission to view
          *at least one* page in the admin site.
          """
          return request.user.is_authenticated() and request.user.is_staff
  
      def check_dependencies(self):
          """
          Check that all things needed to run the admin have been correctly installed.
  
 
</s> remove         if request.user.is_authenticated() and request.user.is_staff:
 </s> add         if request.user.is_staff: </s> remove         if request.method == 'HEAD' and (request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS or (request.user.is_authenticated() and request.user.is_staff)):
 </s> add         if request.method == 'HEAD' and (request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS or request.user.is_staff): </s> remove         if not (request.user.is_authenticated() and request.user.has_perm('polls.can_vote')):
 </s> add         if not request.user.has_perm('polls.can_vote'):
        return request.user.is_staff
          """
          Returns True if the given HttpRequest has permission to view
          *at least one* page in the admin site.
          """
        return request.user.is_staff
  
      def check_dependencies(self):
          """
          Check that all things needed to run the admin have been correctly installed.
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #6991 -- Removed some redundant user.is_authenticated() calls in various places. Thanks, alexkoshelev, Liang Feng and Ivan Sagalaev

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12142 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/sites.py