can only view timematrix if owner of event

This commit is contained in:
skeeter 2000-11-22 04:37:02 +00:00
parent ecf581cc34
commit 9d38344e92

View File

@ -90,9 +90,12 @@
$phpgw->template->parse("output","list",True); $phpgw->template->parse("output","list",True);
$phpgw->template->set_var("field",lang("Created by")); $phpgw->template->set_var("field",lang("Created by"));
if($is_my_event)
$phpgw->template->set_var("data","<a href=\"" $phpgw->template->set_var("data","<a href=\""
.$phpgw->link("timematrix.php","participants=".$cal_info->owner."&date=".$cal_info->year.$cal_info->month.$cal_info->day) .$phpgw->link("timematrix.php","participants=".$cal_info->owner."&date=".$cal_info->year.$cal_info->month.$cal_info->day)
."\">".$phpgw->common->grab_owner_name($cal_info->owner)."</a>"); ."\">".$phpgw->common->grab_owner_name($cal_info->owner)."</a>");
else
$phpgw->template->set_var("data",$phpgw->common->grab_owner_name($cal_info->owner));
$phpgw->template->parse("output","list",True); $phpgw->template->parse("output","list",True);
$phpgw->template->set_var("field",lang("Updated")); $phpgw->template->set_var("field",lang("Updated"));