Fix logic to hide delete button

This commit is contained in:
Nathan Gray 2010-11-22 16:46:18 +00:00
parent 7358243aa1
commit 65a1f21890

View File

@ -1475,7 +1475,7 @@ function replace_eTemplate_onsubmit()
$content['deleted'] = $preserv['deleted'] = null;
$etpl->set_cell_attribute('button[save]', 'label', 'Recover');
$etpl->set_cell_attribute('button[apply]', 'disabled', true);
if($GLOBALS['egw_info']['user']['apps']['admin'] || $config['calendar_delete_history'] != 'user_purge')
if(!$GLOBALS['egw_info']['user']['apps']['admin'] && $config['calendar_delete_history'] != 'user_purge')
{
$readonlys['button[delete]'] = true;
}