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)
return FALSE; //An error occured
//Check if the page is public
if($visibility == 3)
//Check if the page is open
if($visibility == User::USER_PAGE_OPEN)
return true;
if($userID == 0)
return false;
if($visibility == 2)
if($visibility == User::USER_PAGE_PUBLIC)
return true;
if(CS::get()->components->friends->are_friend($userID, $targetUser))