From a8aa9ac8b89b82c205329aa4d4a7876a23fb1546 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 21 Oct 2001 13:39:45 +0000 Subject: [PATCH] Fix for when not the owner of the event to be able to export the event. --- calendar/inc/class.uicalendar.inc.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 79fc41fa36..3a2f780841 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -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 ''; + echo $p->fp('out','form_button').''; } function edit($params='')