mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
fix: Allow embedded guest user datasource access with dashboard context (#25081)
This commit is contained in:
@@ -1649,7 +1649,7 @@ class TestSecurityManager(SupersetTestCase):
|
||||
def test_raise_for_access_query_context(
|
||||
self, mock_can_access_schema, mock_can_access, mock_is_owner, mock_g
|
||||
):
|
||||
query_context = Mock(datasource=self.get_datasource_mock())
|
||||
query_context = Mock(datasource=self.get_datasource_mock(), form_data={})
|
||||
|
||||
mock_can_access_schema.return_value = True
|
||||
security_manager.raise_for_access(query_context=query_context)
|
||||
|
||||
Reference in New Issue
Block a user