old boot.php functions replaced in src/module (3)
This commit is contained in:
committed by
Hypolite Petovan
parent
83390d4b00
commit
ae6d67ed1f
@@ -56,7 +56,7 @@ class Common extends BaseProfile
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||
}
|
||||
|
||||
$displayCommonTab = Session::isAuthenticated() && $profile['uid'] != local_user();
|
||||
$displayCommonTab = Session::isAuthenticated() && $profile['uid'] != Session::getLocalUser();
|
||||
|
||||
if (!$displayCommonTab) {
|
||||
$a->redirect('profile/' . $nickname . '/contacts');
|
||||
|
||||
Reference in New Issue
Block a user