mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-14 17:39:37 -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
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
* 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
|
* 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.
|
* 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
|
else
|
||||||
hintflags |= RS_FILE_HINTS_CACHE ;
|
hintflags |= RS_FILE_HINTS_CACHE ;
|
||||||
|
|
||||||
if(mSearch->search(hash, hintflags,peerId, info))
|
if(mSearch->search(hash, hintflags, info))
|
||||||
{
|
{
|
||||||
|
|
||||||
/* setup a new provider */
|
/* setup a new provider */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue