$str .= $error->err_text; } } return $str; } } if ($_SERVER["REQUEST_METHOD"] === "GET" && isset($_GET["ajax"]) && $_GET["ajax"] === "y" && isset($_GET["entity_type"]) && isset($_GET["iblock_id"]) && isset($_GET["id"]) && check_bitrix_sessid()) { require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_js.php"; if ($_GET["entity_type"] == "element") { $obRights = new CIBlockElementRights($_GET["iblock_id"], $_GET["id"]); } elseif ($_GET["entity_type"] == "section") { $obRights = new CIBlockSectionRights($_GET["iblock_id"], $_GET["id"]); } else { $obRights = new CIBlockRights($_GET["id"]); } $obStorage = $obRights->_storage_object(); $arOverwrited = array(); if (isset($_REQUEST["added"]) && is_array($_REQUEST["added"])) { foreach ($_REQUEST["added"] as $provider => $arCodes) { if (is_array($arCodes)) { foreach ($arCodes as $id => $arCode) { $arOverwrited[$id] = $obStorage->CountOverWrited($id); } } } } if (isset($_REQUEST["info"]) && $_REQUEST["info"] > 0) { $arOverwrited = $obRights->GetUserOperations($_GET["id"], $_REQUEST["info"]); } echo CUtil::PHPToJSObject($arOverwrited); require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";