Group::getSonetBlogPostRights

  1. Bitrix24 API (v. 23.675.0)
  2. blog
  3. Group
  4. getSonetBlogPostRights
  • Модуль: blog
  • Путь к файлу: ~/bitrix/modules/blog/lib/copy/integration/group.php
  • Класс: BitrixBlogCopyIntegrationGroup
  • Вызов: Group::getSonetBlogPostRights
private function getSonetBlogPostRights($blogPostId)
{
	$currentRights = [];

	foreach (CBlogPost::getSocNetPerms($blogPostId) as $type => $val)
	{
		foreach ($val as $id => $values)
		{
			if ($type != "U")
			{
				$currentRights[] = $type.$id;
			}
			else
			{
				$currentRights[] = (in_array("US".$id, $values) ? "UA" : $type.$id);
			}
		}
	}

	return $currentRights;
}

Добавить комментарий