def has_permission(self, request):
        return request.user.is_active and request.user.is_staff
Returns True if the given HttpRequest has permission to view
dataset/ETHPy150Open sshwsfc/xadmin/xadmin/sites.py/AdminSite.has_permission