Index: branches/5.2.x/core/units/files/file_eh.php =================================================================== diff -u -N -r14675 -r14989 --- branches/5.2.x/core/units/files/file_eh.php (.../file_eh.php) (revision 14675) +++ branches/5.2.x/core/units/files/file_eh.php (.../file_eh.php) (revision 14989) @@ -1,6 +1,6 @@ Array('subitem' => 'view'), + + $permissions = Array ( + 'OnDownloadFile' => Array ('subitem' => 'view'), ); $this->permMapping = array_merge($this->permMapping, $permissions); @@ -74,15 +78,15 @@ * @access protected * @see kDBEventHandler::OnListBuild() */ - protected function SetCustomQuery(&$event) + protected function SetCustomQuery(kEvent &$event) { parent::SetCustomQuery($event); $object =& $event->getObject(); /* @var $object kDBList */ - if (!$this->Application->isAdminUser) { - $object->addFilter('active_filter', '%1$s.Status = '.STATUS_ACTIVE); + if ( !$this->Application->isAdminUser ) { + $object->addFilter('active_filter', '%1$s.Status = ' . STATUS_ACTIVE); } }