Index: branches/RC/core/kernel/db/db_event_handler.php =================================================================== diff -u -N -r11495 -r11501 --- branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 11495) +++ branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 11501) @@ -83,6 +83,10 @@ $this->Application->LinkVar('m_cat_id'); } + if ($event->Name == 'OnSaveWidths') { + return $this->Application->IsAdmin() && $this->Application->LoggedIn(); + } + return parent::CheckPermission($event); } @@ -2432,7 +2436,8 @@ */ function OnSaveWidths(&$event) { - safeDefine('DBG_SKIP_REPORTING', 1); + $event->status = erSTOP; + $lang =& $this->Application->recallObject('lang.current'); // header('Content-type: text/xml; charset='.$lang->GetDBField('Charset')); @@ -2441,7 +2446,8 @@ $picker_helper->PreparePicker($event->getPrefixSpecial(), $this->Application->GetVar('grid_name')); $picker_helper->SaveWidths($event->getPrefixSpecial(), $this->Application->GetVar('widths')); - exit; + + echo 'OK'; } /**