Ticket #3087: patch.diff

File patch.diff, 716 bytes (added by John D'Agostino <john.dagostino@…>, 18 years ago)
  • django/contrib/admin/views/decorators.py

     
    102102                    else:
    103103                        request.session.delete_test_cookie()
    104104                        return http.HttpResponseRedirect(request.path)
     105            elif user.is_active and not user.is_staff:
     106                message = _("You do not have the correct permissions to view this site.")
     107                return _display_login_form(request, message)
    105108            else:
    106109                return _display_login_form(request, ERROR_MESSAGE)
    107110
Back to Top