From f8c7c23bbf2bef08d62b09fc2e6aa143928c0e41 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Feb 2019 10:16:25 +0100 Subject: [PATCH] missing commit from: fix photo was lost when non-admin user edited own account --- api/src/Contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index e5796c4edc..fc5d4b0ec5 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -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)