* Calendar: user without edit access to event could not delete own alarm

This commit is contained in:
Ralf Becker 2014-10-01 14:08:31 +00:00
parent 165abb1280
commit ae8754638e

View File

@ -1506,7 +1506,7 @@ class calendar_uiforms extends calendar_ui
$alarm['offset'] = implode(', ',$label) . ' ' . ($after ? lang('after') : lang('before')); $alarm['offset'] = implode(', ',$label) . ' ' . ($after ? lang('after') : lang('before'));
$content['alarm'][] = $alarm; $content['alarm'][] = $alarm;
$readonlys['delete_alarm['.$alarm['id'].']'] = !$this->bo->check_perms(EGW_ACL_EDIT,$alarm['all'] ? $event : 0,$alarm['owner']); $readonlys['alarm[delete_alarm]['.$alarm['id'].']'] = !$this->bo->check_perms(EGW_ACL_EDIT,$alarm['all'] ? $event : 0,$alarm['owner']);
} }
} }
else else
@ -1530,7 +1530,7 @@ class calendar_uiforms extends calendar_ui
if ($view) if ($view)
{ {
$readonlys['__ALL__'] = true; // making everything readonly, but widgets set explicitly to false $readonlys['__ALL__'] = true; // making everything readonly, but widgets set explicitly to false
$readonlys['alarm'] = $readonlys['button[cancel]'] = $readonlys['action'] = $readonlys['button[cancel]'] = $readonlys['action'] =
$readonlys['before_after'] = $readonlys['button[add_alarm]'] = $readonlys['new_alarm[owner]'] = $readonlys['before_after'] = $readonlys['button[add_alarm]'] = $readonlys['new_alarm[owner]'] =
$readonlys['new_alarm[options]'] = $readonlys['new_alarm[date]'] = false; $readonlys['new_alarm[options]'] = $readonlys['new_alarm[date]'] = false;