mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15:59:29 +00:00
Fixed user visiblity check issue
This commit is contained in:
parent
814d840e38
commit
27a9d69370
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user