Línea 82... |
Línea 82... |
82 |
|
82 |
|
83 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
83 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
84 |
$allowValues = $acl->isAllowed($currentUser->usertype_id, 'habits/values');
|
84 |
$allowValues = $acl->isAllowed($currentUser->usertype_id, 'habits/values');
|
85 |
$allowParadigms = $acl->isAllowed($currentUser->usertype_id, 'habits/paradigms');
|
85 |
$allowParadigms = $acl->isAllowed($currentUser->usertype_id, 'habits/paradigms');
|
- |
|
86 |
$allowPurposes = $acl->isAllowed($currentUser->usertype_id, 'habits/purposes');
|
- |
|
87 |
$allowSkills = $acl->isAllowed($currentUser->usertype_id, 'habits/skills');
|
Línea 86... |
Línea 88... |
86 |
$allowPurposes = $acl->isAllowed($currentUser->usertype_id, 'habits/purposes');
|
88 |
$allowGoals = $acl->isAllowed($currentUser->usertype_id, 'habits/goals');
|
87 |
|
89 |
|
88 |
return new JsonModel([
|
90 |
return new JsonModel([
|
89 |
'success' => true,
|
91 |
'success' => true,
|
90 |
'data' => [
|
92 |
'data' => [
|
91 |
'link_values' => $allowValues ? $this->url()->fromRoute('habits/values', [], ['force_canonical' => true]) : '',
|
93 |
'link_values' => $allowValues ? $this->url()->fromRoute('habits/values', [], ['force_canonical' => true]) : '',
|
- |
|
94 |
'link_paradigms' => $allowParadigms ? $this->url()->fromRoute('habits/paradigms', [], ['force_canonical' => true]) : '',
|
- |
|
95 |
'link_purposes' => $allowPurposes ? $this->url()->fromRoute('habits/purposes', [], ['force_canonical' => true]) : '',
|
92 |
'link_paradigms' => $allowParadigms ? $this->url()->fromRoute('habits/paradigms', [], ['force_canonical' => true]) : '',
|
96 |
'link_skills' => $allowSkills ? $this->url()->fromRoute('habits/skills', [], ['force_canonical' => true]) : '',
|
93 |
'link_purposes' => $allowPurposes ? $this->url()->fromRoute('habits/purposes', [], ['force_canonical' => true]) : '',
|
97 |
'link_goals' => $allowGoals ? $this->url()->fromRoute('habits/goals', [], ['force_canonical' => true]) : '',
|
Línea 94... |
Línea 98... |
94 |
]
|
98 |
]
|