mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
Fix logic to hide delete button
This commit is contained in:
parent
7358243aa1
commit
65a1f21890
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user