mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Cleanup table access check naming (#27772)
This commit is contained in:
@@ -63,7 +63,7 @@ from superset.commands.importers.exceptions import (
|
||||
from superset.commands.importers.v1.utils import get_contents_from_bundle
|
||||
from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
|
||||
from superset.daos.database import DatabaseDAO, DatabaseUserOAuth2TokensDAO
|
||||
from superset.databases.decorators import check_datasource_access
|
||||
from superset.databases.decorators import check_table_access
|
||||
from superset.databases.filters import DatabaseFilter, DatabaseUploadEnabledFilter
|
||||
from superset.databases.schemas import (
|
||||
database_schemas_query_schema,
|
||||
@@ -694,7 +694,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
|
||||
@expose("/<int:pk>/table/<path:table_name>/<schema_name>/", methods=("GET",))
|
||||
@protect()
|
||||
@check_datasource_access
|
||||
@check_table_access
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@event_logger.log_this_with_context(
|
||||
@@ -757,7 +757,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
|
||||
@expose("/<int:pk>/table_extra/<path:table_name>/<schema_name>/", methods=("GET",))
|
||||
@protect()
|
||||
@check_datasource_access
|
||||
@check_table_access
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@event_logger.log_this_with_context(
|
||||
@@ -820,7 +820,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
@expose("/<int:pk>/select_star/<path:table_name>/", methods=("GET",))
|
||||
@expose("/<int:pk>/select_star/<path:table_name>/<schema_name>/", methods=("GET",))
|
||||
@protect()
|
||||
@check_datasource_access
|
||||
@check_table_access
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@event_logger.log_this_with_context(
|
||||
|
||||
Reference in New Issue
Block a user