mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 22:40:23 +01:00
Fix for when not the owner of the event to be able to export the event.
This commit is contained in:
parent
60f9dc225d
commit
a8aa9ac8b8
@ -541,15 +541,15 @@
|
|||||||
}
|
}
|
||||||
echo $this->view_event($event);
|
echo $this->view_event($event);
|
||||||
|
|
||||||
|
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||||
|
$p->set_file(
|
||||||
|
Array(
|
||||||
|
'form_button' => 'form_button_script.tpl'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
if($this->bo->owner == $event['owner'])
|
if($this->bo->owner == $event['owner'])
|
||||||
{
|
{
|
||||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
|
||||||
$p->set_file(
|
|
||||||
Array(
|
|
||||||
'form_button' => 'form_button_script.tpl'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($this->bo->check_perms(PHPGW_ACL_EDIT))
|
if ($this->bo->check_perms(PHPGW_ACL_EDIT))
|
||||||
{
|
{
|
||||||
if($event['recur_type'] != MCAL_RECUR_NONE)
|
if($event['recur_type'] != MCAL_RECUR_NONE)
|
||||||
@ -616,9 +616,7 @@
|
|||||||
'action_extra_field' => ''
|
'action_extra_field' => ''
|
||||||
);
|
);
|
||||||
$p->set_var($var);
|
$p->set_var($var);
|
||||||
echo $p->fp('out','form_button');
|
echo $p->fp('out','form_button').'</center>';
|
||||||
|
|
||||||
echo '</center>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function edit($params='')
|
function edit($params='')
|
||||||
|
Loading…
Reference in New Issue
Block a user