36 } else {
37 $result = $menu->query['option'] === 'com_docman';
38 }
39
40 if (!$result) {
41 throw new RuntimeException($this->getObject('translator')->translate('Invalid menu item'));
42 }
43
44 return true;
45 }
46 }