Línea 148... |
Línea 148... |
148 |
foreach ($records as $record) {
|
148 |
foreach ($records as $record) {
|
Línea 149... |
Línea 149... |
149 |
|
149 |
|
150 |
$item = [
|
150 |
$item = [
|
151 |
'id' => $record->id,
|
151 |
'id' => $record->id,
|
152 |
'name' => $record->name,
|
152 |
'name' => $record->name,
|
153 |
'image' => $storage->getUserImage($currentUser),
|
153 |
'image' => $storage->getUserProfileImage($currentUser, $record),
|
154 |
'link_view' => $allowView ? $this->url()->fromRoute('profile/view', ['id' => $record->uuid]) : '',
|
154 |
'link_view' => $allowView ? $this->url()->fromRoute('profile/view', ['id' => $record->uuid]) : '',
|
155 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('profile/my-profiles/edit', ['id' => $record->uuid]) : '',
|
155 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('profile/my-profiles/edit', ['id' => $record->uuid]) : '',
|
156 |
'link_delete' => $allowDelete && $record->public == UserProfile::PUBLIC_NO ? $this->url()->fromRoute('profile/my-profiles/delete', ['id' => $record->uuid]) : '',
|
156 |
'link_delete' => $allowDelete && $record->public == UserProfile::PUBLIC_NO ? $this->url()->fromRoute('profile/my-profiles/delete', ['id' => $record->uuid]) : '',
|