Index: branches/5.2.x/core/units/translator/translator_event_handler.php =================================================================== diff -u -N -r14675 -r14989 --- branches/5.2.x/core/units/translator/translator_event_handler.php (.../translator_event_handler.php) (revision 14675) +++ branches/5.2.x/core/units/translator/translator_event_handler.php (.../translator_event_handler.php) (revision 14989) @@ -1,6 +1,6 @@ Array('subitem' => 'add|edit'), - 'OnSaveAndClose' => Array('subitem' => 'add|edit'), - ); + 'OnChangeLanguage' => Array('subitem' => 'add|edit'), + 'OnSaveAndClose' => Array('subitem' => 'add|edit'), + ); + $this->permMapping = array_merge($this->permMapping, $permissions); } @@ -37,12 +42,13 @@ * @return bool * @access public */ - public function CheckPermission(&$event) + public function CheckPermission(kEvent &$event) { - list($prefix, $field) = $this->getPrefixAndField($event); + list($prefix, ) = $this->getPrefixAndField($event); $top_prefix = $this->Application->GetTopmostPrefix($prefix, true); $event->setEventParam('top_prefix', $top_prefix); + return parent::CheckPermission($event); }