Example #1
0
def authz():
    obj = Dataset.by_name(request.args.get('dataset'))
    etag_cache_keygen(obj, private=True)
    if obj is None:
        return jsonify({
            'read': False,
            'update': False
        })
    return jsonify({
        'read': dataset.read(obj),
        'update': dataset.update(obj)
    })
Example #2
0
def authz():
    obj = Dataset.by_name(request.args.get('dataset'))
    etag_cache_keygen(obj, private=True)
    if obj is None:
        return jsonify({'read': False, 'update': False})
    return jsonify({'read': dataset.read(obj), 'update': dataset.update(obj)})
Example #3
0
def authz():
    obj = Dataset.by_name(request.args.get("dataset"))
    if obj is None:
        return jsonify({"read": False, "update": False})
    return jsonify({"read": dataset.read(obj), "update": dataset.update(obj)})
Example #4
0
def authz():
    obj = Dataset.by_name(request.args.get('dataset'))
    if obj is None:
        return jsonify({'read': False, 'update': False})
    return jsonify({'read': dataset.read(obj), 'update': dataset.update(obj)})