def __accessibility_verfy(accessibility, request, key, token, verify_token):
    if (accessibility == s.ACCESSIBILITY_PUBLIC):
        return True
    elif ((accessibility == s.ACCESSIBILITY_LOGIN) or (accessibility == s.ACCESSIBILITY_LOGIN_OR_TOKEN)):
        if is_logged(request):
            return True
        elif (token != ''):
            if (token == verify_token):
                return True
    elif (accessibility == s.ACCESSIBILITY_PRIVATE):
        if is_logged(request):
            if is_owner(request, key):
                return True
        return False
    elif (accessibility == s.ACCESSIBILITY_TOKEN):
        if (token != ''):
            if (token == verify_token):
                return True
def __accessibility_verfy(accessibility, request, key, token, verify_token):
    if (accessibility == s.ACCESSIBILITY_PUBLIC):
        return True
    elif ((accessibility == s.ACCESSIBILITY_LOGIN) or (accessibility == s.ACCESSIBILITY_LOGIN_OR_TOKEN)):
        if is_logged(request):
            return True
        elif (token != ):
            if (token == verify_token):
                return True
    elif (accessibility == s.ACCESSIBILITY_PRIVATE):
        if is_logged(request):
            if is_owner(request, key):
                return True
        return False
    elif (accessibility == s.ACCESSIBILITY_TOKEN):
        if (token != ):
            if (token == verify_token):
                return True