Commit 81f4c187 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Ignore updates to frozen users; they will happen later if the user

is thawed.
parent 0664c7ec
......@@ -550,6 +550,14 @@ sub UpdateUser(;$)
return 0;
}
if (!defined($freezeopt) && ($status ne USERSTATUS_ACTIVE)) {
#
# If doing a modification to a frozen user, then just ignore
# it; the modification will happen later when the user is thawed.
#
if ($status eq USERSTATUS_FROZEN) {
print "Ignoring update of frozen user $user\n";
return 0;
}
fatal("$user is not active! Cannot update the account!");
}
......
Supports Markdown
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