mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fix for bug [ 1014883 ] Sidebox with Add New Entry even if now permissions to add
This commit is contained in:
parent
e116a61201
commit
65fe6dd6e9
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user