diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index fd3fdc3a11..68b75bea7c 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1095,7 +1095,7 @@ class addressbook_ui extends addressbook_bo { $row['tel_prefered'] = $row[$row['tel_prefer']].' ♥'; } - $readonlys["delete[$row[id]]"] = !$this->check_perms(EGW_ACL_DELETE,$row) || (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge'); + $readonlys["delete[$row[id]]"] = !$this->check_perms(EGW_ACL_DELETE,$row) || (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge' && $query['col_filter']['tid'] == addressbook_so::DELETED_TYPE); $readonlys["edit[$row[id]]"] = !$this->check_perms(EGW_ACL_EDIT,$row); if ($row['photo']) $photos = true;