} 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"; } function IBlockShowRights($entity_type, $iblock_id, $id, $section_title, $variable_name, $arPossibleRights, $arActualRights, $bDefault = false, $bForceInherited = false, $arSelected = array(), $arHighLight = array()) { $js_var_name = preg_replace("/[^a-zA-Z0-9_]/", "_", $variable_name); $html_var_name = htmlspecialcharsbx($variable_name); $sSelect = '<select name="' . $html_var_name . '[][TASK_ID]" style="vertical-align:middle">'; foreach ($arPossibleRights as $value => $title) { $sSelect .= '<option value="' . htmlspecialcharsbx($value) . '">' . htmlspecialcharsex($title) . '</option>'; } $sSelect .= '</select>'; if ($bForceInherited != true) { foreach ($arActualRights as $RIGHT_ID => $arRightSet) {