public function GetAllowableOperations($documentType) { $iblockId = intval(substr($documentType, strlen("iblock_"))); if ($iblockId <= 0) { throw new CBPArgumentOutOfRangeException("documentType", $documentType); } if (CIBlock::getArrayByID($iblockId, "RIGHTS_MODE") === "E") { $operations = array(); $tasks = self::getRightsTasks(); foreach ($tasks as $ar) { $key = empty($ar['LETTER']) ? $ar['ID'] : $ar['LETTER']; $operations[$key] = $ar['TITLE']; } return $operations; } return parent::getAllowableOperations($documentType); }