Línea 100... |
Línea 100... |
100 |
|
100 |
|
Línea 101... |
Línea 101... |
101 |
|
101 |
|
102 |
$search = Functions::sanitizeFilterString($this->params()->fromQuery('search', ''));
|
102 |
$search = Functions::sanitizeFilterString($this->params()->fromQuery('search', ''));
|
103 |
|
103 |
|
104 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
104 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
Línea 105... |
Línea 105... |
105 |
$allowView = $acl->isAllowed($currentUser->usertype_id, 'group/view', ['force_canonical' => true]);
|
105 |
$allowView = $acl->isAllowed($currentUser->usertype_id, 'group/view');
|
Línea 106... |
Línea 106... |
106 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'group/my-groups/edit', ['force_canonical' => true]);
|
106 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'group/my-groups/edit');
|
Línea 136... |
Línea 136... |
136 |
|
136 |
|
137 |
$item = [
|
137 |
$item = [
|
138 |
'name' => $record['name'],
|
138 |
'name' => $record['name'],
|
139 |
'privacy' => $values[$record['privacy']],
|
139 |
'privacy' => $values[$record['privacy']],
|
140 |
'image' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
|
140 |
'image' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
|
141 |
'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid'] ], ['force_canonical' => true]) : '',
|
141 |
'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid'] ]) : '',
|
142 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('group/my-groups/edit', ['id' => $record['uuid'] ], ['force_canonical' => true]) : '',
|
142 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('group/my-groups/edit', ['id' => $record['uuid'] ]) : '',
|
Línea 143... |
Línea 143... |
143 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('group/my-groups/delete', ['id' => $record['uuid'] ], ['force_canonical' => true]) : '',
|
143 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('group/my-groups/delete', ['id' => $record['uuid'] ]) : '',
|
Línea 144... |
Línea 144... |
144 |
|
144 |
|
145 |
];
|
145 |
];
|
Línea 452... |
Línea 452... |
452 |
'types' => $types,
|
452 |
'types' => $types,
|
453 |
'privacies' => $privacies,
|
453 |
'privacies' => $privacies,
|
454 |
'accessibilities' => $accessibilities,
|
454 |
'accessibilities' => $accessibilities,
|
Línea 455... |
Línea 455... |
455 |
|
455 |
|
456 |
|
456 |
|
457 |
'link_extended' => $this->url()->fromRoute('group/my-groups/extended', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
457 |
'link_extended' => $this->url()->fromRoute('group/my-groups/extended', ['id' => $record['uuid'] ]),
|
458 |
'link_image' => $this->url()->fromRoute('group/my-groups/image', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
458 |
'link_image' => $this->url()->fromRoute('group/my-groups/image', ['id' => $record['uuid'] ]),
|
459 |
'link_cover' => $this->url()->fromRoute('group/my-groups/cover', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
459 |
'link_cover' => $this->url()->fromRoute('group/my-groups/cover', ['id' => $record['uuid'] ]),
|
460 |
'link_privacy' => $this->url()->fromRoute('group/my-groups/privacy', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
460 |
'link_privacy' => $this->url()->fromRoute('group/my-groups/privacy', ['id' => $record['uuid'] ]),
|
461 |
'link_website' => $this->url()->fromRoute('group/my-groups/website', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
461 |
'link_website' => $this->url()->fromRoute('group/my-groups/website', ['id' => $record['uuid'] ]),
|
462 |
'link_industry' => $this->url()->fromRoute('group/my-groups/industry', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
462 |
'link_industry' => $this->url()->fromRoute('group/my-groups/industry', ['id' => $record['uuid'] ]),
|
463 |
'link_accessibility' => $this->url()->fromRoute('group/my-groups/accessibility', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
463 |
'link_accessibility' => $this->url()->fromRoute('group/my-groups/accessibility', ['id' => $record['uuid'] ]),
|
464 |
'link_type' => $this->url()->fromRoute('group/my-groups/type', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
464 |
'link_type' => $this->url()->fromRoute('group/my-groups/type', ['id' => $record['uuid'] ]),
|
Línea 465... |
Línea 465... |
465 |
'link_status' => $this->url()->fromRoute('group/my-groups/status', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
465 |
'link_status' => $this->url()->fromRoute('group/my-groups/status', ['id' => $record['uuid'] ]),
|