mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix(row_level_security): Correct api response code for update (#34672)
This commit is contained in:
committed by
GitHub
parent
58ebc57285
commit
ecfb9f7d7c
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user