From 1b51910c216bf2b4f485bd2d9ab490aefbfa8604 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 9 May 2020 11:09:14 +1000 Subject: Don't allow lowering level. Have to do that the hard way in the console. --- src/sledjchisl/sledjchisl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sledjchisl') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index ff6fdfd..a26c922 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -4910,6 +4910,7 @@ static void accountEditWeb(reqData *Rd, inputForm *oF, inputValue *oV) *voucher = displayPrep(getStrH(Rd->database, "Lua.voucher")), *about = displayPrep(getStrH(Rd->database, "Lua.aboutMe")), *lvl = getLevel(atoi(level)); + short lv = atoi(level); accountWebHeaders(Rd, oF); accountWebFields(Rd, oF, oV); @@ -4937,7 +4938,9 @@ static void accountEditWeb(reqData *Rd, inputForm *oF, inputValue *oV) if (strcmp(lvl, (char *) obj.data) == 0) is = true; - if ((is) || ((l <= Rd->shs.level) && (l != -200) && (l != -100) && (l != -50))) // Not above our pay grade, not newbie, validated, nor vouched for. + +// if ((is) || ((l <= Rd->shs.level) && (l != -200) && (l != -100) && (l != -50))) // Not above our pay grade, not newbie, validated, nor vouched for. + if ((is) || ((l <= Rd->shs.level) && (lv <= l))) // As per discussions, can't lower level. Do that in the console. HTMLoption(Rd->reply, (char *) obj.data, is); } accountLevels->unlock(accountLevels); -- cgit v1.1