diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 8795fe0638..006d31f7ab 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -2290,6 +2290,14 @@ window.egw_LAB.wait(function() { { $readonlys[$field] = false; } + if (!$readonlys['jpegphoto']) + { + $readonlys = array_merge($readonlys, array( + 'upload_photo' => false, + 'delete_photo' => false, + 'addressbook.edit.upload' => false + )); + } } if (isset($readonlys['n_fileas'])) $readonlys['fileas_type'] = $readonlys['n_fileas']; // disable not needed tabs diff --git a/addressbook/templates/default/edit.xet b/addressbook/templates/default/edit.xet index 1155eb5c2b..66aeee378e 100644 --- a/addressbook/templates/default/edit.xet +++ b/addressbook/templates/default/edit.xet @@ -2,7 +2,7 @@ -