amitmiran137 commented on a change in pull request #13992:
URL: https://github.com/apache/superset/pull/13992#discussion_r610362830



##########
File path: superset/security/manager.py
##########
@@ -994,8 +994,14 @@ def raise_for_access(  # pylint: 
disable=too-many-arguments,too-many-branches
 
             assert datasource
 
+            from superset import is_feature_enabled
+
             if not (
-                self.can_access_schema(datasource)
+                (
+                    is_feature_enabled("DASHBOARD_RBAC")

Review comment:
       ```suggestion
                       feature_flag_manager.is_feature_enabled("DASHBOARD_RBAC")
   ```




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

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