mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix: small cleanup for created by me dashboards API (#19755)
This commit is contained in:
parent
22a92ed722
commit
f06db796b5
@ -100,7 +100,6 @@ MODEL_VIEW_RW_METHOD_PERMISSION_MAP = {
|
||||
|
||||
MODEL_API_RW_METHOD_PERMISSION_MAP = {
|
||||
"bulk_delete": "write",
|
||||
"created_by_me": "read",
|
||||
"delete": "write",
|
||||
"distinct": "read",
|
||||
"get": "read",
|
||||
|
@ -140,7 +140,6 @@ class DashboardRestApi(BaseSupersetModelRestApi):
|
||||
"set_embedded",
|
||||
"delete_embedded",
|
||||
"thumbnail",
|
||||
"created_by_me",
|
||||
}
|
||||
resource_name = "dashboard"
|
||||
allow_browser_login = True
|
||||
|
@ -1587,7 +1587,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
|
||||
@event_logger.log_this
|
||||
@expose("/created_dashboards/<int:user_id>/", methods=["GET"])
|
||||
def created_dashboards(self, user_id: int) -> FlaskResponse:
|
||||
logging.warning(
|
||||
logger.warning(
|
||||
"%s.created_dashboards "
|
||||
"This API endpoint is deprecated and will be removed in version 3.0.0",
|
||||
self.__class__.__name__,
|
||||
|
Loading…
Reference in New Issue
Block a user