fixed delete button in addressbook.edit was shown without rights

This commit is contained in:
Ralf Becker 2014-02-13 14:07:42 +00:00
parent 17d5a567ee
commit 22b4a11c7f

View File

@ -1939,7 +1939,7 @@ window.egw_LAB.wait(function() {
$readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false;
$readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] ||
$this->account_repository != 'sql' && $content['account_id'];
$readonlys['button[delete]'] = !$content['id'];
if (!$content['id']) $readonlys['button[delete]'] = !$content['id'];
if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0;
$readonlys['change_org'] = empty($content['org_name']) || $view;