• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/usertypewebdav.php
  • Класс: CUserTypeWebdavElement
  • Вызов: CUserTypeWebdavElement::OnPostUpdate
static function OnPostUpdate($id, &$arParams)
{
	// we only extend file permissions,
	// also we cannot figure out if the current file permissions are originally from file or from post
	// some users who had access earlier might already download the file,

	static::OnPostAdd($id, $arParams);
	if (isset($arParams['SC_PERM']))
	{
		$arFiles = array_merge(static::_getBlogPostCommentFiles($id), static::getBlogPostFiles($id));
		if (sizeof($arFiles) <= 0)
		{
			return;
		}

		$arRights = array();
		if (is_array($arParams['SC_PERM']) && (sizeof($arParams['SC_PERM']) > 0))
		{
			$arRights = $arParams['SC_PERM'];
		}

		static::_updateRights($arFiles, $arRights);
	}
}