Index: trunk/core/units/general/helpers/permissions_helper.php =================================================================== diff -u -r8402 -r8409 --- trunk/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 8402) +++ trunk/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 8409) @@ -167,6 +167,7 @@ $id = $event_handler->getPassedID($event); } + $owner_id = -1; // owner is root if not detected if (!$id) { // item being created -> check by current (before editing started, saved in OnPreCreate event) category permissions $category_id = $this->Application->IsAdmin() ? $this->Application->RecallVar('m_cat_id') : $this->Application->GetVar('m_cat_id');