check if document is accessible before listing it in the calendar

This commit is contained in:
Uwe Steinmann 2018-06-14 17:17:06 +02:00
parent 00bbda39bb
commit e1390d7178

View File

@ -199,6 +199,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style {
default:
$color = '#20a8a8';
}
if ($item['document']->getAccessMode($user) >= M_READ)
$arr[] = array(
'start'=>$item['date'],
'title'=>$item['document']->getName()."\n".$item['msg'],