Fix for when not the owner of the event to be able to export the event.

This commit is contained in:
skeeter 2001-10-21 13:39:45 +00:00
parent 60f9dc225d
commit a8aa9ac8b8

View File

@ -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='')