Merge conflicts

This commit is contained in:
Hugh Miles
2017-11-02 18:06:29 -07:00
committed by Maxime Beauchemin
parent 445f1e204c
commit 1060484836

View File

@@ -998,8 +998,8 @@ class Superset(BaseSupersetView):
mimetype='application/json')
@log_this
@has_access_api
@expose('/explore_json/<datasource_type>/<datasource_id>/')
# @has_access_api # remove until we figure out auth REMOTE_USER
@expose("/explore_json/<datasource_type>/<datasource_id>/")
def explore_json(self, datasource_type, datasource_id):
try:
viz_obj = self.get_viz(
@@ -1012,7 +1012,7 @@ class Superset(BaseSupersetView):
utils.error_msg_from_exception(e),
stacktrace=traceback.format_exc())
if not self.datasource_access(viz_obj.datasource):
if not self.datasource_access(viz_obj.datasource) and request.args.get("restful") != "true":
return json_error_response(DATASOURCE_ACCESS_ERR, status=404)
if request.args.get('csv') == 'true':