missing commit from: fix photo was lost when non-admin user edited own account

This commit is contained in:
Ralf Becker 2019-02-25 10:16:25 +01:00
parent 6e6137cdcb
commit f8c7c23bbf

View File

@ -970,7 +970,7 @@ class Contacts extends Contacts\Storage
{
foreach(array_keys($contact) as $field)
{
if (!in_array($field,$this->own_account_acl) && !in_array($field,array('id','owner','account_id','modified','modifier')))
if (!in_array($field,$this->own_account_acl) && !in_array($field,array('id','owner','account_id','modified','modifier', 'photo_unchanged')))
{
// user is not allowed to change that
if ($old)