forked from extern/egroupware
missing commit from: fix photo was lost when non-admin user edited own account
This commit is contained in:
parent
6e6137cdcb
commit
f8c7c23bbf
@ -970,7 +970,7 @@ class Contacts extends Contacts\Storage
|
|||||||
{
|
{
|
||||||
foreach(array_keys($contact) as $field)
|
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
|
// user is not allowed to change that
|
||||||
if ($old)
|
if ($old)
|
||||||
|
Loading…
Reference in New Issue
Block a user