mirror of
https://github.com/friendica/friendica
synced 2024-11-18 19:43:46 +00:00
Merge pull request #8996 from MrPetovan/bug/8995-profile-contacts-is-owner
Enable profile contacts page for profile owner
This commit is contained in:
commit
017a57cf1e
1 changed files with 3 additions and 3 deletions
|
@ -51,14 +51,14 @@ class Contacts extends Module\BaseProfile
|
|||
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
|
||||
}
|
||||
|
||||
if (!empty($a->profile['hide-friends'])) {
|
||||
$is_owner = $a->profile['uid'] == local_user();
|
||||
|
||||
if (!empty($a->profile['hide-friends']) && !$is_owner) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||
}
|
||||
|
||||
Nav::setSelected('home');
|
||||
|
||||
$is_owner = $a->profile['uid'] == local_user();
|
||||
|
||||
$o = self::getTabsHTML($a, 'contacts', $is_owner, $nickname);
|
||||
|
||||
$tabs = self::getContactFilterTabs('profile/' . $nickname, $type, Session::isAuthenticated() && $a->profile['uid'] != local_user());
|
||||
|
|
Loading…
Reference in a new issue