mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix: revert back to use security manager authz for dashboard when get by uuid (#23330)
This commit is contained in:
@@ -107,7 +107,8 @@ def test_get(test_client, login_as_admin, dashboard_id: int, permalink_salt: str
|
||||
resp = test_client.get(f"api/v1/dashboard/permalink/{key}")
|
||||
assert resp.status_code == 200
|
||||
result = resp.json
|
||||
assert result["dashboardId"] == str(dashboard_id)
|
||||
dashboard_uuid = result["dashboardId"]
|
||||
assert Dashboard.get(dashboard_uuid).id == dashboard_id
|
||||
assert result["state"] == STATE
|
||||
id_ = decode_permalink_id(key, permalink_salt)
|
||||
db.session.query(KeyValueEntry).filter_by(id=id_).delete()
|
||||
|
||||
Reference in New Issue
Block a user