Delete deprecated generateUserInfosArray method

This commit is contained in:
Pierre
2018-04-15 14:39:17 +02:00
parent bec22cb607
commit 265944ff49
3 changed files with 18 additions and 64 deletions

View File

@ -310,11 +310,11 @@ class Posts {
$visibilityLevel = CS::get()->components->user->getVisibility($post_infos['user_page_id']);
//If the page is open, access is free
if($visibilityLevel == User::USER_PAGE_OPEN)
if($visibilityLevel == UserComponent::USER_PAGE_OPEN)
return $this::BASIC_ACCESS;
//Else check if the user is signed in and the page is public
else if($userID != 0 AND $visibilityLevel == User::USER_PAGE_PUBLIC)
else if($userID != 0 AND $visibilityLevel == UserComponent::USER_PAGE_PUBLIC)
return $this::BASIC_ACCESS;
else