mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
restrict number of workspace forks in CE
This commit is contained in:
@@ -3418,6 +3418,9 @@ async fn create_workspace_fork(
|
||||
)));
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "enterprise"))]
|
||||
_check_nb_of_workspaces(&db).await?;
|
||||
|
||||
if *DISABLE_WORKSPACE_FORK {
|
||||
require_super_admin(&db, &authed.email).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user