70 public function preloadRights(array $elementIds, array $sectionIds): void
72 if (!empty($elementIds))
74 $rows = CIBlockElementRights::UserHasRightTo(
78 CIBlockElementRights::RETURN_OPERATIONS
80 foreach ($rows as $elementId => $rights)
82 $this->elementsRights[$elementId] = $rights;
86 if (!empty($elementIds))
88 $rows = CIBlockSectionRights::UserHasRightTo(
92 CIBlockSectionRights::RETURN_OPERATIONS
94 foreach ($rows as $sectionId => $rights)
96 $this->sectionsRights[$sectionId] = $rights;