﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6363	Login page is redisplayed without any message if AdminSite.has_permission() returns False	Michel Sabchuk	Ahtisham Shafi	"I found a bug when using the has_permission method of the AdminSite class to filter which users can access the admin page:


{{{
class SuperuserAdminSite(admin.AdminSite):
    def has_permission(self, request):
        return super(SuperuserAdminSite, self).has_permission(request) and request.user.is_superuser
admin_site = SuperuserAdminSite()
}}}


When I try to log on a user that is not a superuser, it already get the login but stay on the login page (with the header but no application loaded), I think this is a bug :) The user should get a error message as if it passed a wrong password or such, isn´t it?
"	Bug	assigned	contrib.admin	dev	Normal			net147	Accepted	1	0	1	0	0	0
