Línea 82... |
Línea 82... |
82 |
|
82 |
|
83 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
83 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
84 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/add');
|
84 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/add');
|
85 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/edit');
|
85 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/edit');
|
- |
|
86 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/delete');
|
Línea 86... |
Línea 87... |
86 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/delete');
|
87 |
$allowRegister = $acl->isAllowed($currentUser->usertype_id, 'habits/skills/registers');
|
87 |
|
88 |
|
Línea 115... |
Línea 116... |
115 |
'description' => $record->description,
|
116 |
'description' => $record->description,
|
116 |
'intelligence' => $record->intelligence,
|
117 |
'intelligence' => $record->intelligence,
|
117 |
'actions' => [
|
118 |
'actions' => [
|
118 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('habits/skills/edit', ['id' => $record->uuid ], ['force_canonical' => true]) : '',
|
119 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('habits/skills/edit', ['id' => $record->uuid ], ['force_canonical' => true]) : '',
|
119 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('habits/skills/delete', ['id' =>$record->uuid ], ['force_canonical' => true]) : '',
|
120 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('habits/skills/delete', ['id' =>$record->uuid ], ['force_canonical' => true]) : '',
|
- |
|
121 |
'link_registers' => $allowRegister ? $this->url()->fromRoute('habits/skills/registers', ['id' =>$record->uuid ], ['force_canonical' => true]) : '',
|
- |
|
122 |
|
120 |
]
|
123 |
]
|
121 |
];
|
124 |
];
|
Línea 122... |
Línea 125... |
122 |
|
125 |
|
123 |
array_push($items, $item);
|
126 |
array_push($items, $item);
|