there are some odd cases where anonymous is not user #1, so use the anon_id variable
This commit is contained in:
@ -150,7 +150,7 @@ class UserPageTheme extends Themelet {
|
||||
protected function build_options(User $duser) {
|
||||
global $config, $database, $user;
|
||||
$html = "";
|
||||
if($duser->id != 1){ //justa fool-admin protection so they dont mess around with anon users.
|
||||
if($duser->id != $config->get_int('anon_id')){ //justa fool-admin protection so they dont mess around with anon users.
|
||||
|
||||
$html .= "
|
||||
".make_form(make_link("user_admin/change_pass"))."
|
||||
|
Reference in New Issue
Block a user