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) })
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)})
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)})
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)})