Fixed user visiblity check issue

This commit is contained in:
Pierre 2018-01-04 18:59:29 +01:00
parent 814d840e38
commit 27a9d69370

View File

@ -420,14 +420,14 @@ class User{
if($visibility == -1) if($visibility == -1)
return FALSE; //An error occured return FALSE; //An error occured
//Check if the page is public //Check if the page is open
if($visibility == 3) if($visibility == User::USER_PAGE_OPEN)
return true; return true;
if($userID == 0) if($userID == 0)
return false; return false;
if($visibility == 2) if($visibility == User::USER_PAGE_PUBLIC)
return true; return true;
if(CS::get()->components->friends->are_friend($userID, $targetUser)) if(CS::get()->components->friends->are_friend($userID, $targetUser))