• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/security/rightparam.php
  • Класс: BitrixListsSecurityRightParam
  • Вызов: RightParam::getClosedStatusSocnetGroup
public function getClosedStatusSocnetGroup()
{
	$socnetGroupId = intval($this->socnetGroupId);
	if ($socnetGroupId && Loader::includeModule("socialnetwork"))
	{
		$socnetGroup = CSocNetGroup::getByID($socnetGroupId);
		if (
			is_array($socnetGroup) &&
			$socnetGroup["CLOSED"] == "Y" &&
			!CSocNetUser::isCurrentUserModuleAdmin() &&
			($socnetGroup["OWNER_ID"] != $this->getUser()->getID() ||
				Option::get("socialnetwork", "work_with_closed_groups", "N") != "Y")
		)
		{
			return true;
		}
	}
	return false;
}