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

This commit is contained in:
Hypolite Petovan 2021-11-29 07:06:41 -05:00
parent 75f0c58c5f
commit c2df5d66d7

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;