Fix delete button so users can delete their personal contacts

This commit is contained in:
Nathan Gray 2010-11-23 21:28:58 +00:00
parent 46a90c13f9
commit ece55ed97a

View File

@ -1095,7 +1095,7 @@ class addressbook_ui extends addressbook_bo
{ {
$row['tel_prefered'] = $row[$row['tel_prefer']].' ♥'; $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); $readonlys["edit[$row[id]]"] = !$this->check_perms(EGW_ACL_EDIT,$row);
if ($row['photo']) $photos = true; if ($row['photo']) $photos = true;