From 27a9d6937009adf2c81fcfe809dca78a52ab4493 Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 4 Jan 2018 18:59:29 +0100 Subject: [PATCH] Fixed user visiblity check issue --- classes/components/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/components/user.php b/classes/components/user.php index 3a6f689..2aeb618 100644 --- a/classes/components/user.php +++ b/classes/components/user.php @@ -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))