Use user-specific id to fetch the list of group appartenance in Module\Contact\Profile

pull/11045/head
Hypolite Petovan 2021-11-29 07:06:41 -05:00
parent 75f0c58c5f
commit c2df5d66d7
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class Profile extends BaseModule
$groups_widget = '';
if (!in_array($localRelationship->rel, [Contact::NOTHING, Contact::SELF])) {
$groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $contact['id']);
$groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $data['user']);
}
$this->page['aside'] .= $vcard_widget . $groups_widget;