fixed bug in permission check

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-FileSharingPermissions@5776 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-11-04 15:15:36 +00:00
parent 9a6b675657
commit 65146b77d9

View File

@ -1309,6 +1309,7 @@ bool ftDataMultiplex::handleSearchRequest(const std::string& peerId, const std::
* the network wide and browsable flags are needed, otherwise results get filtered.
* For tunnel creation, the check of browsable/network wide flag is already done, so
* if we get a file download packet here, the source is already allowed to download it.
* That is why we don't call the search function with a peer id.
*
*/
@ -1320,7 +1321,7 @@ bool ftDataMultiplex::handleSearchRequest(const std::string& peerId, const std::
else
hintflags |= RS_FILE_HINTS_CACHE ;
if(mSearch->search(hash, hintflags,peerId, info))
if(mSearch->search(hash, hintflags, info))
{
/* setup a new provider */