mirror of
https://github.com/apache/superset.git
synced 2026-07-11 17:25:31 +00:00
Merge conflicts
This commit is contained in:
committed by
Maxime Beauchemin
parent
445f1e204c
commit
1060484836
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user