def login_required(view):

    def wrapper(request, *args, **kwargs):
        if request.method == 'DELETE':
            app.abort(403)
        return view(request, *args, **kwargs)
    return wrapper
dataset/ETHPy150Open mozillazg/bustard/tests/test_views.py/login_required/original