mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 11:29: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);
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p->set_file(
|
||||
Array(
|
||||
'form_button' => 'form_button_script.tpl'
|
||||
)
|
||||
);
|
||||
|
||||
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($event['recur_type'] != MCAL_RECUR_NONE)
|
||||
@ -616,9 +616,7 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
echo $p->fp('out','form_button');
|
||||
|
||||
echo '</center>';
|
||||
echo $p->fp('out','form_button').'</center>';
|
||||
}
|
||||
|
||||
function edit($params='')
|
||||
|
Loading…
Reference in New Issue
Block a user