Don't unlock users who are not locked

This commit is contained in:
Cathy J. Fitzpatrick 2013-05-12 16:31:04 -06:00
parent b2e7078327
commit 128229fd0a

View File

@ -1032,9 +1032,11 @@ function unlock(name, unlocked, noRecurse) {
var userips = null;
if (user) {
if (user.userid === userid) name = user.name;
user.locked = false;
unlocked = unlocked || {};
unlocked[name] = 1;
if (user.locked) {
user.locked = false;
unlocked = unlocked || {};
unlocked[name] = 1;
}
if (!noRecurse) userips = user.ips;
}
for (var ip in lockedIps) {