diff options
author | onefang | 2020-05-09 11:09:14 +1000 |
---|---|---|
committer | onefang | 2020-05-09 11:09:14 +1000 |
commit | 1b51910c216bf2b4f485bd2d9ab490aefbfa8604 (patch) | |
tree | 2fc587a325063cbd52666392a4cd82b95be63f95 /src | |
parent | Add about me to the account edit page. (diff) | |
download | opensim-SC-1b51910c216bf2b4f485bd2d9ab490aefbfa8604.zip opensim-SC-1b51910c216bf2b4f485bd2d9ab490aefbfa8604.tar.gz opensim-SC-1b51910c216bf2b4f485bd2d9ab490aefbfa8604.tar.bz2 opensim-SC-1b51910c216bf2b4f485bd2d9ab490aefbfa8604.tar.xz |
Don't allow lowering level.
Have to do that the hard way in the console.
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) | |||
4910 | *voucher = displayPrep(getStrH(Rd->database, "Lua.voucher")), | 4910 | *voucher = displayPrep(getStrH(Rd->database, "Lua.voucher")), |
4911 | *about = displayPrep(getStrH(Rd->database, "Lua.aboutMe")), | 4911 | *about = displayPrep(getStrH(Rd->database, "Lua.aboutMe")), |
4912 | *lvl = getLevel(atoi(level)); | 4912 | *lvl = getLevel(atoi(level)); |
4913 | short lv = atoi(level); | ||
4913 | 4914 | ||
4914 | accountWebHeaders(Rd, oF); | 4915 | accountWebHeaders(Rd, oF); |
4915 | accountWebFields(Rd, oF, oV); | 4916 | accountWebFields(Rd, oF, oV); |
@@ -4937,7 +4938,9 @@ static void accountEditWeb(reqData *Rd, inputForm *oF, inputValue *oV) | |||
4937 | 4938 | ||
4938 | if (strcmp(lvl, (char *) obj.data) == 0) | 4939 | if (strcmp(lvl, (char *) obj.data) == 0) |
4939 | is = true; | 4940 | is = true; |
4940 | if ((is) || ((l <= Rd->shs.level) && (l != -200) && (l != -100) && (l != -50))) // Not above our pay grade, not newbie, validated, nor vouched for. | 4941 | |
4942 | // if ((is) || ((l <= Rd->shs.level) && (l != -200) && (l != -100) && (l != -50))) // Not above our pay grade, not newbie, validated, nor vouched for. | ||
4943 | if ((is) || ((l <= Rd->shs.level) && (lv <= l))) // As per discussions, can't lower level. Do that in the console. | ||
4941 | HTMLoption(Rd->reply, (char *) obj.data, is); | 4944 | HTMLoption(Rd->reply, (char *) obj.data, is); |
4942 | } | 4945 | } |
4943 | accountLevels->unlock(accountLevels); | 4946 | accountLevels->unlock(accountLevels); |