mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-31 11:08:16 -04:00
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:
parent
9a6b675657
commit
65146b77d9
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user