Línea 132... |
Línea 132... |
132 |
$allowValues = $acl->isAllowed($currentUser->usertype_id, 'habits/values');
|
132 |
$allowValues = $acl->isAllowed($currentUser->usertype_id, 'habits/values');
|
133 |
$allowParadigms = $acl->isAllowed($currentUser->usertype_id, 'habits/paradigms');
|
133 |
$allowParadigms = $acl->isAllowed($currentUser->usertype_id, 'habits/paradigms');
|
134 |
$allowPurposes = $acl->isAllowed($currentUser->usertype_id, 'habits/purposes');
|
134 |
$allowPurposes = $acl->isAllowed($currentUser->usertype_id, 'habits/purposes');
|
135 |
$allowSkills = $acl->isAllowed($currentUser->usertype_id, 'habits/skills');
|
135 |
$allowSkills = $acl->isAllowed($currentUser->usertype_id, 'habits/skills');
|
136 |
$allowGoals = $acl->isAllowed($currentUser->usertype_id, 'habits/goals');
|
136 |
$allowGoals = $acl->isAllowed($currentUser->usertype_id, 'habits/goals');
|
- |
|
137 |
$allowAspectDailyLog = $acl->isAllowed($currentUser->usertype_id, 'habits/aspect-daily-log');
|
Línea 137... |
Línea 138... |
137 |
|
138 |
|
138 |
return new JsonModel([
|
139 |
return new JsonModel([
|
139 |
'success' => true,
|
140 |
'success' => true,
|
140 |
'data' => [
|
141 |
'data' => [
|
141 |
'categories' => $categories,
|
142 |
'categories' => $categories,
|
- |
|
143 |
'emojis' => $emojis,
|
142 |
'emojis' => $emojis,
|
144 |
'link_aspect_daily_log' => $allowAspectDailyLog ? $this->url()->fromRoute('habits/aspect-daily-log', [], ['force_canonical' => true]) : '',
|
143 |
'link_values' => $allowValues ? $this->url()->fromRoute('habits/values', [], ['force_canonical' => true]) : '',
|
145 |
'link_values' => $allowValues ? $this->url()->fromRoute('habits/values', [], ['force_canonical' => true]) : '',
|
144 |
'link_paradigms' => $allowParadigms ? $this->url()->fromRoute('habits/paradigms', [], ['force_canonical' => true]) : '',
|
146 |
'link_paradigms' => $allowParadigms ? $this->url()->fromRoute('habits/paradigms', [], ['force_canonical' => true]) : '',
|
145 |
'link_purposes' => $allowPurposes ? $this->url()->fromRoute('habits/purposes', [], ['force_canonical' => true]) : '',
|
147 |
'link_purposes' => $allowPurposes ? $this->url()->fromRoute('habits/purposes', [], ['force_canonical' => true]) : '',
|
146 |
'link_skills' => $allowSkills ? $this->url()->fromRoute('habits/skills', [], ['force_canonical' => true]) : '',
|
148 |
'link_skills' => $allowSkills ? $this->url()->fromRoute('habits/skills', [], ['force_canonical' => true]) : '',
|