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

	$result = false;

	$permissions = $this->getPermissions();

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

	return $result;
}