skip mail-accounts is user editable check for password change

some stored credentials are not event linked to mail accounts or 
might belong to by user not editable accounts like smime on a mail account for all
This commit is contained in:
Ralf Becker 2019-10-15 18:33:35 +02:00
parent 80e96fce6c
commit df1909d8c1

View File

@ -723,7 +723,7 @@ class Credentials
foreach(self::get_db()->select(self::TABLE, self::TABLE.'.*', array(
'account_id' => $data['account_id']
),__LINE__, __FILE__, false, '', self::APP, 0, self::USER_EDITABLE_JOIN.self::get_db()->quote(true, 'bool')) as $row)
),__LINE__, __FILE__, false, '', self::APP) as $row)
{
$password = self::decrypt($row, self::isUser($row['cred_pw_enc']) ? $data['old_passwd'] : null);