fix: refuse objects built on a continuous aggregate, show copy warnings in the cli and import

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-12-02 12:12:01 +01:00
co-authored by Claude Opus 5.5
parent 443fc4a589
commit 4c71c42e49
4 changed files with 53 additions and 10 deletions
@@ -12012,7 +12012,7 @@ async fn archive_workspace(
.fetch_optional(&db)
.await?
.unwrap_or(false)
&& !authed.admin_withheld;
&& !authed.admin_withheld;
if !is_prod_admin && !windmill_api_auth::is_super_admin_authed(&db, &authed).await? {
return Err(Error::PermissionDenied(format!(
"Archiving dev workspace '{w_id}' requires being an admin of its parent prod workspace '{prod}' (or a superadmin)"