Commit 0af1740a authored by Leigh Stoller's avatar Leigh Stoller

If request is a short extension, less then the free grant, then do not

require admin approval just grant it.
parent 65196d40
...@@ -321,13 +321,20 @@ function Do_RequestExtension() ...@@ -321,13 +321,20 @@ function Do_RequestExtension()
"free extensions"; "free extensions";
} }
# #
# After a month, all extension requests require admin approval. # After maxage, all extension requests require admin approval.
# #
elseif ($cdiff > (3600 * 24 * $autoextend_maxage)) { elseif ($cdiff > (3600 * 24 * $autoextend_maxage)) {
$needapproval = 1; #
# Well, unless they asked for less then the free grant,
# which is a nice loophole people will probably notice.
#
$granted = 2; $granted = 2;
$message = "because it was started more then ".
"$autoextend_maxage days ago"; if ($wanted > $granted) {
$needapproval = 1;
$message = "because it was started more then ".
"$autoextend_maxage days ago";
}
} }
# #
# Registered users are granted up to the autoextend_maximum # Registered users are granted up to the autoextend_maximum
......
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