mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(auth): redirect anonymous attempts to view dashboard with next (#35345)
This commit is contained in:
@@ -190,6 +190,8 @@ def delete_all_inserted_objects() -> None:
|
||||
|
||||
def delete_all_inserted_dashboards():
|
||||
try:
|
||||
# Expire all objects to ensure fresh state after potential rollbacks
|
||||
db.session.expire_all()
|
||||
dashboards_to_delete: list[Dashboard] = (
|
||||
db.session.query(Dashboard)
|
||||
.filter(Dashboard.id.in_(inserted_dashboards_ids))
|
||||
|
||||
Reference in New Issue
Block a user