forked from extern/egroupware
Fix delete button so users can delete their personal contacts
This commit is contained in:
parent
46a90c13f9
commit
ece55ed97a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user