• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/internals/registry/featurepermregistry.php
  • Класс: BitrixSocialnetworkInternalsRegistryFeaturePermRegistry
  • Вызов: FeaturePermRegistry::get
public function get(int $entityId, string $feature, string $operation, int $userId = 0, string $entityType = SONET_ENTITY_GROUP): bool
{
	if (
		!$entityId
		|| empty($feature)
		|| empty($operation)
		|| !in_array($entityType, [ SONET_ENTITY_GROUP, SONET_ENTITY_USER ], true)
	)
	{
		return false;
	}

	$storageKey = $this->getStorageKey($userId, $entityType, $feature, $operation);

	if (!isset($this->storage[$storageKey][$entityId]))
	{
		$this->load([$entityId], $feature, $operation, $userId, $entityType);
	}

	if (!isset($this->storage[$storageKey][$entityId]))
	{
		return false;
	}

	return $this->storage[$storageKey][$entityId];
}