You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ms...@apache.org on 2025/08/13 12:13:35 UTC
(superset) 01/01: fix(row_level_security): Correct api response code for update
This is an automated email from the ASF dual-hosted git repository.
msyavuz pushed a commit to branch msyavuz/fix/code-for-rls-update
in repository https://gitbox.apache.org/repos/asf/superset.git
commit df225e39435e8cdbb2cff6d533a05a6f325e78ca
Author: Mehmet Salih Yavuz <sa...@proton.me>
AuthorDate: Wed Aug 13 15:12:19 2025 +0300
fix(row_level_security): Correct api response code for update
---
superset/row_level_security/api.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/row_level_security/api.py b/superset/row_level_security/api.py
index 24e9dd4935..6d9c2e1d05 100644
--- a/superset/row_level_security/api.py
+++ b/superset/row_level_security/api.py
@@ -285,7 +285,7 @@ class RLSRestApi(BaseSupersetModelRestApi):
try:
new_model = UpdateRLSRuleCommand(pk, item).run()
- return self.response(201, id=new_model.id, result=item)
+ return self.response(200, id=new_model.id, result=item)
except RolesNotFoundValidationError as ex:
logger.error(
"Role not found while updating RLS rule %s: %s",