• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile/profilepost.php
  • Класс: BitrixIntranetComponentUserProfileProfilePost
  • Вызов: ProfilePost::getProfileBlogPostFormAction
public function getProfileBlogPostFormAction()
{
	global $USER;

	$result = [];

	$permissions = $this->getPermissions();

	if (
		(
			$permissions['edit']
			|| $USER->getId() == $this->getProfileId()
		)
		&& Loader::includeModule('blog')
	)
	{
		if ($postId = $this->getPostId())
		{
			$result = $this->getPostData($postId);
		}
		else
		{
			$result = [];
		}
	}

	return $result;
}