mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: methods incorrect type and update deprecated targets (#23935)
This commit is contained in:
committed by
GitHub
parent
841726d432
commit
694f93326d
@@ -124,7 +124,7 @@ class RLSRestApi(BaseSupersetModelRestApi):
|
||||
allowed_rel_fields = {"tables", "roles"}
|
||||
base_related_field_filters = app.config["RLS_BASE_RELATED_FIELD_FILTERS"]
|
||||
|
||||
@expose("/", methods=["POST"])
|
||||
@expose("/", methods=("POST",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@@ -202,7 +202,7 @@ class RLSRestApi(BaseSupersetModelRestApi):
|
||||
)
|
||||
return self.response_422(message=str(ex))
|
||||
|
||||
@expose("/<int:pk>", methods=["PUT"])
|
||||
@expose("/<int:pk>", methods=("PUT",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@@ -291,7 +291,7 @@ class RLSRestApi(BaseSupersetModelRestApi):
|
||||
except RLSRuleNotFoundError as ex:
|
||||
return self.response_404()
|
||||
|
||||
@expose("/", methods=["DELETE"])
|
||||
@expose("/", methods=("DELETE",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
|
||||
Reference in New Issue
Block a user