Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 279 | Rev 291 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 279 Rev 281
Línea 103... Línea 103...
103
            }
103
            }
Línea 104... Línea 104...
104
            
104
            
105
            if($isJson) {
105
            if($isJson) {
Línea -... Línea 106...
-
 
106
                $search = trim(filter_var($this->params()->fromQuery('search', ''), FILTER_SANITIZE_STRING));
-
 
107
                
-
 
108
 
-
 
109
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
-
 
110
                $allowTakeATest = $acl->isAllowed($currentUser->usertype_id, 'profile/self-evaluation/take-a-test');
-
 
111
                $allowReport = $acl->isAllowed($currentUser->usertype_id, 'profile/self-evaluation/report');
Línea 106... Línea 112...
106
                $search = trim(filter_var($this->params()->fromQuery('search', ''), FILTER_SANITIZE_STRING));
112
 
Línea 107... Línea 113...
107
                
113
 
Línea 155... Línea 161...
155
                            $status = 'LABEL_REVIEW';
161
                            $status = 'LABEL_REVIEW';
156
                            break;
162
                            break;
Línea 157... Línea 163...
157
                            
163
                            
158
                            
164
                            
159
                        default :     
165
                        default :     
Línea 160... Línea 166...
160
                            $status = 'LABEL_REVIEW';
166
                            $status = 'LABEL_AVAILABLE';
Línea 167... Línea 173...
167
                        'name' => $record['name'], 
173
                        'name' => $record['name'], 
168
                        'description' => $record['description'],
174
                        'description' => $record['description'],
169
                        'text' => $record['text'], 
175
                        'text' => $record['text'], 
170
                        'language' => $language,
176
                        'language' => $language,
171
                        'status' => $status,
177
                        'status' => $status,
172
                        'link_take_a_test' => empty($record['status']) ? $this->url()->fromRoute('profile/self-evaluation/take-a-test', ['id' => $record['uuid']  ]) : '',
178
                        'link_take_a_test' => $allowTakeATest && empty($record['status']) ? $this->url()->fromRoute('profile/self-evaluation/take-a-test', ['id' => $record['uuid']  ]) : '',
173
                        'link_report'   => $record['status'] == CompanySelfEvaluationTest::STATUS_COMPLETED ?  $this->url()->fromRoute('profile/self-evaluation/report', ['id' => $record['uuid']  ]) : '',
179
                        'link_report'   => $allowReport && $record['status'] == CompanySelfEvaluationTest::STATUS_COMPLETED ?  $this->url()->fromRoute('profile/self-evaluation/report', ['id' => $record['uuid']  ]) : '',
Línea 174... Línea 180...
174
                        
180