From 22b4a11c7f1b1f0e45fcbc3174ed1bea674bd73d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 13 Feb 2014 14:07:42 +0000 Subject: [PATCH] fixed delete button in addressbook.edit was shown without rights --- addressbook/inc/class.addressbook_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 442f563337..48dbdba631 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -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;