All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit c13c4c14 authored by Leigh B Stoller's avatar Leigh B Stoller

Do not allow clone of an instance if it is busy doing something else.

parent f816f660
......@@ -299,6 +299,10 @@ if (! isset($create)) {
else if ($this_idx != $instance->creator_idx() && !ISADMIN()) {
SPITUSERERROR("Not enough permission!");
}
else if ($instance->status() != "ready") {
SPITUSERERROR("Instance is busy, cannot clone it. " .
"Please try again later.");
}
$profile = Profile::Lookup($instance->profile_id(),
$instance->profile_version());
if (!$profile) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment