Index: branches/5.2.x/core/kernel/db/db_event_handler.php =================================================================== diff -u -r14697 -r14714 --- branches/5.2.x/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 14697) +++ branches/5.2.x/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 14714) @@ -1,6 +1,6 @@ Application->RecallVar('user_id'); + $user_id = $this->Application->InitDone ? $this->Application->RecallVar('user_id') : USER_ROOT; $event->setEventParam('top_prefix', $this->Application->GetTopmostPrefix($event->Prefix, true)); $status_checked = false; if ($user_id == USER_ROOT || $this->CheckPermission($event)) {