You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by li...@apache.org on 2022/02/26 00:17:14 UTC

[superset] 02/03: blah

This is an automated email from the ASF dual-hosted git repository.

lilykuang pushed a commit to branch fix/guest-access-handling
in repository https://gitbox.apache.org/repos/asf/superset.git

commit aef76804861e24ea8eb3882d1d394e60e52eb7d9
Author: David Aaron Suddjian <aa...@gmail.com>
AuthorDate: Fri Feb 25 14:55:14 2022 -0800

    blah
---
 superset/connectors/sqla/models.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py
index ca1d4bc..cc2ecc1 100644
--- a/superset/connectors/sqla/models.py
+++ b/superset/connectors/sqla/models.py
@@ -990,7 +990,11 @@ class SqlaTable(Model, BaseDatasource):  # pylint: disable=too-many-public-metho
                 else:
                     all_filters.append(clause)
 
-            if is_feature_enabled("EMBEDDED_SUPERSET"):
+            is_embedded = is_feature_enabled("EMBEDDED_SUPERSET")
+            logging.warning(
+                f"!debugging! _get_sqla_row_level_filters feature flag: {is_embedded}"
+            )
+            if is_embedded:
                 for rule in security_manager.get_guest_rls_filters(self):
                     clause = self.text(
                         f"({template_processor.process_template(rule['clause'])})"