• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/addressbookhandler.php
  • Класс: CDavAddressbookHandler
  • Вызов: CDavAddressbookHandler::CheckPrivileges
public function CheckPrivileges($testPrivileges, $principal, $collectionId)
{
	if ($this->IsMacAgent())
	{
		return $this->GetDefaultResourceProvider()->CheckPrivileges($testPrivileges, $principal, $collectionId);
	}
	else
	{
		$arPath = explode('/', $this->groupdav->GetRequest()->GetPath());
		if (!empty($this->addressbookCollections[$arPath[4]]))
			return $this->addressbookCollections[$arPath[4]]->CheckPrivileges($testPrivileges, $principal, $collectionId);
	}


	return false;
}