mirror of
https://codeberg.org/usemod/usemod
synced 2026-04-04 18:40:10 +09:00
fix WikiBugs/PwlistArray
reported and fix contributed by JuanmaMP
This commit is contained in:
@@ -7,6 +7,8 @@ Changes for next release:
|
||||
based on work by MarkIrons
|
||||
* fixed bug UnusedVariableDeclaration
|
||||
fix contributed by JuanMtnezPineda
|
||||
* fixed bug PwlistArray
|
||||
fix contributed by JuanMtnezPineda
|
||||
|
||||
Changes for bugfix release 1.0.6 (November 05, 2016):
|
||||
|
||||
|
||||
4
wiki.pl
4
wiki.pl
@@ -2807,7 +2807,7 @@ sub UserIsBanned {
|
||||
}
|
||||
|
||||
sub UserIsAdmin {
|
||||
my (@pwlist, $userPassword);
|
||||
my ($userPassword);
|
||||
|
||||
return 0 if ($AdminPass eq "");
|
||||
$userPassword = &GetParam("adminpw", "");
|
||||
@@ -2820,7 +2820,7 @@ sub UserIsAdmin {
|
||||
}
|
||||
|
||||
sub UserIsEditor {
|
||||
my (@pwlist, $userPassword);
|
||||
my ($userPassword);
|
||||
|
||||
return 1 if (&UserIsAdmin()); # Admin includes editor
|
||||
return 0 if ($EditPass eq "");
|
||||
|
||||
Reference in New Issue
Block a user