You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/03/29 18:54:09 UTC
[superset] 01/01: address concerns
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch jack/migrate-copy-dash-to-api-v1
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 5ae2a525db85200019f224e58f02829b5bc18486
Author: hughhhh <hu...@gmail.com>
AuthorDate: Wed Mar 29 14:53:49 2023 -0400
address concerns
---
superset/dashboards/api.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/superset/dashboards/api.py b/superset/dashboards/api.py
index 489514bff0..24a66db2e1 100644
--- a/superset/dashboards/api.py
+++ b/superset/dashboards/api.py
@@ -1232,6 +1232,7 @@ class DashboardRestApi(BaseSupersetModelRestApi):
@expose("/<id_or_slug>/copy/", methods=["POST"])
@protect()
@safe
+ @permission_name("write")
@statsd_metrics
@event_logger.log_this_with_context(
action=lambda self, *args, **kwargs: f"{self.__class__.__name__}.copy_dash",