From 65fe6dd6e9ca45657af4df35765967d5b9ee2464 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 1 Sep 2004 12:58:09 +0000 Subject: [PATCH] fix for bug [ 1014883 ] Sidebox with Add New Entry even if now permissions to add --- calendar/inc/class.uical.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar/inc/class.uical.inc.php b/calendar/inc/class.uical.inc.php index 17e8e481b1..353202de94 100644 --- a/calendar/inc/class.uical.inc.php +++ b/calendar/inc/class.uical.inc.php @@ -264,6 +264,10 @@ class uical 'matrixselect' => array('icon'=>'view','text'=>'Daily Matrix View','menuaction' => 'calendar.uicalendar.matrixselect'), ) as $view => $data) { + if ($view == 'add' && $this->owner != $this->user && !$this->bo->check_perms(PHPGW_ACL_ADD,0,$this->owner)) + { + continue; // we dont have permission add events to the cal of $this->owner ==> skip the icon + } $vars = $link_vars; $vars['menuaction'] = $data['menuaction']; if ($view == 'day')