Commit 8b9192ca authored by Leigh Stoller's avatar Leigh Stoller

Change extension_adminonly to extension_disabled.

parent 92baeadd
......@@ -1535,7 +1535,7 @@ sub DoExtend()
#
# If admin lockout, we are refusing any more free time.
#
if ($instance->extension_adminonly()) {
if ($instance->extension_disabled()) {
$message = "because you are not allowed any more extensions";
$granted = 0;
}
......@@ -4049,7 +4049,7 @@ sub DoSchedTerminate()
goto bad;
}
# No free time.
$instance->Update({"extension_adminonly" => 1});
$instance->Update({"extension_disabled" => 1});
#
# Need to set the new expiration before we clear the lockdown bit,
......
......@@ -157,7 +157,7 @@ function Do_GetStatus()
$diff = $slice_expires - time();
$cdiff = time() - $slice_created;
if ($instance->extension_lockout() ||
if ($instance->extension_disabled() ||
($cdiff > (3600 * 24 * $autoextend_maxage))) {
$maxttl = $slice_expires - time();
}
......
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