mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 12:30:02 +02:00
fix to allow setting "anonymous" flag for other accounts and try to fix Chrome autocomplete
This commit is contained in:
@@ -104,9 +104,9 @@ class admin_cmd_edit_user extends admin_cmd_change_pw
|
||||
}
|
||||
|
||||
$data['changepassword'] = admin_cmd::parse_boolean($data['changepassword'],$this->account ? null : true);
|
||||
$data['anonymous'] = admin_cmd::parse_boolean($data['anonymous'],$this->account ? null : false) ||
|
||||
// automatic set anonymous flag for username "anonymous", to not allow to create anonymous user without it
|
||||
($data['account_lid'] ?: admin_cmd::$accounts->id2name($this->account)) === 'anonymous';
|
||||
// automatic set anonymous flag for username "anonymous", to not allow to create anonymous user without it
|
||||
$data['anonymous'] = ($data['account_lid'] ?: admin_cmd::$accounts->id2name($this->account)) === 'anonymous' ?
|
||||
true : admin_cmd::parse_boolean($data['anonymous'],$this->account ? null : false);
|
||||
|
||||
if ($data['mustchangepassword'] && $data['changepassword'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user