diff options
author | onefang | 2020-04-22 18:00:26 +1000 |
---|---|---|
committer | onefang | 2020-04-22 18:00:26 +1000 |
commit | 3fd23d251c70ced7ca29b2e49624605b5f775058 (patch) | |
tree | 3a83a0fa7b73add6227d197afcba8d819eb53ad9 /src/sledjchisl | |
parent | Various fixes and additions I'm too tired to untangle now. lol (diff) | |
download | opensim-SC_OLD-3fd23d251c70ced7ca29b2e49624605b5f775058.zip opensim-SC_OLD-3fd23d251c70ced7ca29b2e49624605b5f775058.tar.gz opensim-SC_OLD-3fd23d251c70ced7ca29b2e49624605b5f775058.tar.bz2 opensim-SC_OLD-3fd23d251c70ced7ca29b2e49624605b5f775058.tar.xz |
Filter out things from the level selector.
Diffstat (limited to 'src/sledjchisl')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 8fb505b..c4a1ae4 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -4379,10 +4379,12 @@ static void accountEditWeb(reqData *Rd, inputForm *oF, inputValue *oV) | |||
4379 | while(accountLevels->getnext(accountLevels, &obj, NULL, false) == true) | 4379 | while(accountLevels->getnext(accountLevels, &obj, NULL, false) == true) |
4380 | { | 4380 | { |
4381 | boolean is = false; | 4381 | boolean is = false; |
4382 | short l = atoi((char *) obj.name); | ||
4382 | 4383 | ||
4383 | if (strcmp(lvl, (char *) obj.data) == 0) | 4384 | if (strcmp(lvl, (char *) obj.data) == 0) |
4384 | is = true; | 4385 | is = true; |
4385 | HTMLoption(Rd->reply, (char *) obj.data, is); | 4386 | if ((is) || ((l <= Rd->shs.level) && (l != -200) && (l != -100) && (l != -50))) // Not above our pay grade, not newbie, validated, nor vouched for. |
4387 | HTMLoption(Rd->reply, (char *) obj.data, is); | ||
4386 | } | 4388 | } |
4387 | accountLevels->unlock(accountLevels); | 4389 | accountLevels->unlock(accountLevels); |
4388 | HTMLselectEnd(Rd->reply); | 4390 | HTMLselectEnd(Rd->reply); |