eschutho commented on a change in pull request #19083:
URL: https://github.com/apache/superset/pull/19083#discussion_r829261350



##########
File path: superset/sql_validators/presto_db.py
##########
@@ -55,7 +55,12 @@
         # Hook to allow environment-specific mutation (usually comments) to 
the SQL
         sql_query_mutator = config["SQL_QUERY_MUTATOR"]
         if sql_query_mutator:
-            sql = sql_query_mutator(sql, user_name, security_manager, database)
+            sql = sql_query_mutator(
+                sql,
+                user_name=user_name,

Review comment:
       Yes, the current user_name, or rather identifier. Sometimes it doesn't 
map directly to the person's name depending on how they've authenticated. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to