graceguo-supercat closed pull request #5559: permissions bug fixes
URL: https://github.com/apache/incubator-superset/pull/5559
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/views/core.py b/superset/views/core.py
index 667bfca13a..3d367b35dd 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1091,8 +1091,7 @@ def generate_json(self, datasource_type, datasource_id, 
form_data,
             return json_error_response(
                 
security_manager.get_datasource_access_error_msg(viz_obj.datasource),
                 status=404,
-                
link=security_manager.security_manager.get_datasource_error_link(
-                    viz_obj.datasource))
+                
link=security_manager.get_datasource_access_link(viz_obj.datasource))
 
         if csv:
             return CsvResponse(
@@ -2569,7 +2568,7 @@ def fetch_datasource_metadata(self):
         if not security_manager.datasource_access(datasource):
             return json_error_response(
                 security_manager.get_datasource_access_error_msg(datasource),
-                link=security_manager.get_datasource_error_link(datasource))
+                link=security_manager.get_datasource_access_link(datasource))
         return json_success(json.dumps(datasource.data))
 
     @expose('/queries/<last_updated_ms>')
@@ -2749,7 +2748,7 @@ def sliceQuery(self, slice_id):
             return json_error_response(
                 
security_manager.get_datasource_access_error_msg(viz_obj.datasource),
                 status=401,
-                
link=security_manager.get_datasource_error_link(viz_obj.datasource))
+                
link=security_manager.get_datasource_access_link(viz_obj.datasource))
         return self.get_query_string_response(viz_obj)
 
 


 

----------------------------------------------------------------
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]

Reply via email to