mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
chore: Remove obsolete creating missing metric permissions (#11143)
This commit is contained in:
parent
3d76f81bf7
commit
5e0603f957
@ -551,7 +551,6 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
Creates missing FAB permissions for datasources, schemas and metrics.
|
||||
"""
|
||||
|
||||
from superset.connectors.base.models import BaseMetric
|
||||
from superset.models import core as models
|
||||
|
||||
logger.info("Fetching a set of all perms to lookup which ones are missing")
|
||||
@ -576,11 +575,6 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
for database in databases:
|
||||
merge_pv("database_access", database.perm)
|
||||
|
||||
logger.info("Creating missing metrics permissions")
|
||||
metrics: List[BaseMetric] = []
|
||||
for datasource_class in ConnectorRegistry.sources.values():
|
||||
metrics += list(self.get_session.query(datasource_class.metric_class).all())
|
||||
|
||||
def clean_perms(self) -> None:
|
||||
"""
|
||||
Clean up the FAB faulty permissions.
|
||||
|
Loading…
Reference in New Issue
Block a user