mistercrunch commented on a change in pull request #6220: [SIP-5] Open a new
/api/v1/query endpoint that takes query_obj
URL:
https://github.com/apache/incubator-superset/pull/6220#discussion_r229840868
##########
File path: superset/views/core.py
##########
@@ -2831,11 +2819,7 @@ def slice_query(self, slice_id):
get the database query string for this slice
"""
viz_obj = self.get_viz(slice_id)
- if not security_manager.datasource_access(viz_obj.datasource):
- return json_error_response(
-
security_manager.get_datasource_access_error_msg(viz_obj.datasource),
- status=401,
-
link=security_manager.get_datasource_access_link(viz_obj.datasource))
+ self.check_datasource_permission(viz_obj.datasource)
Review comment:
Same as mentioned above, this looks like it assumes that
check_datasource_permission raises
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]