This is an automated email from the ASF dual-hosted git repository.
vavila pushed a commit to branch feat/async-db-perm-sync
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/feat/async-db-perm-sync by
this push:
new 22ea969b99 Fixing API config
22ea969b99 is described below
commit 22ea969b99a658a8114454a3642e9517a5726a2b
Author: Vitor Avila <[email protected]>
AuthorDate: Fri Feb 7 00:38:18 2025 -0300
Fixing API config
---
superset/databases/api.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/superset/databases/api.py b/superset/databases/api.py
index 08c0c41306..94b85ef75e 100644
--- a/superset/databases/api.py
+++ b/superset/databases/api.py
@@ -171,6 +171,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
"upload_metadata",
"upload",
"oauth2",
+ "resync_permissions",
}
resource_name = "database"
@@ -663,7 +664,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
return self.response_404()
try:
current_username = get_username() or ""
- ResyncPermissionsCommand(database.id, current_username).run()
+ ResyncPermissionsCommand(database, current_username).run()
resync_database_permissions.delay(database, current_username)
return self.response(202, message="OK")
except SupersetException as ex: