mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-26 05:28:57 +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)
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user