• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblocksocnetbizproc.php
  • Класс: CIBlockDocumentWebdavSocnet
  • Вызов: CIBlockDocumentWebdavSocnet::GetAllowableUserGroups
static function GetAllowableUserGroups($documentType, $withExtended = false)
{
	if($storage = self::needProxyToDiskByDocType($documentType))
	{
		return self::proxyToDisk(__FUNCTION__, array(BitrixDiskBizProcDocumentCompatible::generateDocumentType($storage->getId())));
	}

	global $APPLICATION;
	$arResult = array(
		"author" => GetMessage("WD_USER_GROUPS_AUTHOR"),
	);

	$res = explode("_", $documentType);
	if (count($res) != 4)
		return false;

	if ($res[2] == "user")
	{
		$arResult[SONET_RELATIONS_TYPE_NONE] = GetMessage("WD_USER_GROUPS_NONE");
		$arResult[SONET_RELATIONS_TYPE_FRIENDS] = GetMessage("WD_USER_GROUPS_FRIEND");
		$arResult[SONET_RELATIONS_TYPE_ALL] = GetMessage("WD_USER_GROUPS_ALL");
	}
	else
	{
		$arResult[SONET_ROLES_OWNER] = GetMessage("WD_USER_GROUPS_OWNER");
		$arResult[SONET_ROLES_MODERATOR] = GetMessage("WD_USER_GROUPS_MODS");
		$arResult[SONET_ROLES_USER] = GetMessage("WD_USER_GROUPS_MEMBERS");
		$arResult[SONET_ROLES_ALL] = GetMessage("WD_USER_GROUPS_ALL");
	}
	return $arResult;
}