mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
calling the right function to get permission flags
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6298 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bc463a0f81
commit
86ebfc5d2b
@ -268,7 +268,16 @@ bool p3Peers::getPeerDetails(const std::string &id, RsPeerDetails &d)
|
||||
bool res = getGPGDetails(id, d);
|
||||
|
||||
d.isOnlyGPGdetail = true;
|
||||
d.service_perm_flags = mPeerMgr->servicePermissionFlags(id) ;
|
||||
|
||||
if(id.length() == 16)
|
||||
d.service_perm_flags = mPeerMgr->servicePermissionFlags(id) ;
|
||||
else if(id.length() == 32)
|
||||
d.service_perm_flags = mPeerMgr->servicePermissionFlags_sslid(id) ;
|
||||
else
|
||||
{
|
||||
std::cerr << "p3Peers::getPeerDetails() ERROR not an correct Id: " << id << std::endl;
|
||||
d.service_perm_flags = RS_SERVICE_PERM_NONE ;
|
||||
}
|
||||
|
||||
return res ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user