mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
"fixed print without edit rights"
This commit is contained in:
parent
d77f7998af
commit
cc91687826
@ -433,27 +433,19 @@ class calendar_uiforms extends calendar_ui
|
||||
case 'apply':
|
||||
if ($event['id'] && !$this->bo->check_perms(EGW_ACL_EDIT,$event))
|
||||
{
|
||||
if ($button == 'mail') // just mail without edit-rights is ok
|
||||
switch ($button)
|
||||
{
|
||||
$js = $this->custom_mail($event,false);
|
||||
break;
|
||||
}
|
||||
$msg = lang('Permission denied');
|
||||
break;
|
||||
}
|
||||
|
||||
if ($event['id'] && !$this->bo->check_perms(EGW_ACL_EDIT,$event))
|
||||
{
|
||||
if ($button == 'print') // just print without edit-rights is ok
|
||||
{
|
||||
$js = $this->custom_print($event,false);
|
||||
break;
|
||||
case 'mail': // just mail without edit-rights is ok
|
||||
$js = $this->custom_mail($event,false);
|
||||
break 2;
|
||||
case 'print': // just print without edit-rights is ok
|
||||
$js = $this->custom_print($event,false);
|
||||
break 2;
|
||||
}
|
||||
$msg = lang('Permission denied');
|
||||
$button = '';
|
||||
break;
|
||||
}
|
||||
|
||||
if ($event['start'] > $event['end'])
|
||||
{
|
||||
$msg = lang('Error: Starttime has to be before the endtime !!!');
|
||||
|
Loading…
Reference in New Issue
Block a user