mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: export/import catalogs (#28408)
This commit is contained in:
@@ -486,7 +486,10 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
return (
|
||||
self.can_access_all_datasources()
|
||||
or self.can_access_database(datasource.database)
|
||||
or self.can_access_catalog(datasource.database, datasource.catalog)
|
||||
or (
|
||||
datasource.catalog
|
||||
and self.can_access_catalog(datasource.database, datasource.catalog)
|
||||
)
|
||||
or self.can_access("schema_access", datasource.schema_perm or "")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user