forked from extern/egroupware
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'),
|
'matrixselect' => array('icon'=>'view','text'=>'Daily Matrix View','menuaction' => 'calendar.uicalendar.matrixselect'),
|
||||||
) as $view => $data)
|
) 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 = $link_vars;
|
||||||
$vars['menuaction'] = $data['menuaction'];
|
$vars['menuaction'] = $data['menuaction'];
|
||||||
if ($view == 'day')
|
if ($view == 'day')
|
||||||
|
Loading…
Reference in New Issue
Block a user