Index: trunk/kernel/units/phrases/phrases_event_handler.php =================================================================== diff -u -N -r6093 -r6583 --- trunk/kernel/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 6093) +++ trunk/kernel/units/phrases/phrases_event_handler.php (.../phrases_event_handler.php) (revision 6583) @@ -3,14 +3,20 @@ class PhrasesEventHandler extends InpDBEventHandler { + /** + * Allow to create phrases from front end in debug mode with DBG_PHRASES constant set + * + * @param kEvent $event + */ function CheckPermission(&$event) { - if (!$this->Application->IsAdmin() && $event->Name == 'OnCreate' && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { - if ($event->Name == 'OnCreate') { - // allow create phrases from front end in debug mode with DBG_PHRASES + if (!$this->Application->IsAdmin() && $this->Application->isDebugMode() && constOn('DBG_PHRASES')) { + if ($event->Name == 'OnNew' || $event->Name == 'OnCreate') { return true; } } + + return parent::CheckPermission($event); } /**