149 if ($message[
"PARAM1"] == mb_strtoupper(self::ENTITY_TYPE))
155 preg_match(
"/".self::getXmlIdPrefix().
"(\\d+)/", $message[
"XML_ID"], $matches) &&
156 ($taskId = intval($matches[1])) &&
158 !array_key_exists($taskId, self::$permissions)
161 self::$permissions[$taskId] = [];
162 if ($task = \CTasks::GetList(array(), array(
"ID" => $taskId))->fetch())
164 self::$permissions[$taskId] = \CTasks::__GetSearchPermissions($task);
168 $index[
"PERMISSIONS"] = self::$permissions[$taskId];
169 return sizeof(self::$permissions[$taskId]) > 0;