Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16797 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16797 Rev 16940
Línea 245... Línea 245...
245
                    ];
245
                    ];
Línea 246... Línea 246...
246
 
246
 
247
                    array_push($items, $item);
247
                    array_push($items, $item);
Línea 248... Línea -...
248
                }
-
 
-
 
248
                }
249
                
249
                
250
                
250
                $roles = [];
251
                if($knowledgeAreaCategory->privacy == KnowledgeAreaCategory::PRIVACY_COMPANY) {
251
                if($knowledgeAreaCategory->privacy == KnowledgeAreaCategory::PRIVACY_COMPANY) {
252
                    $roles = [
252
                    $roles = [
253
                        KnowledgeAreaCategoryUser::ROLE_USER => 'LABEL_USER',
253
                        KnowledgeAreaCategoryUser::ROLE_USER =>  'LABEL_USER',
254
                        KnowledgeAreaCategoryUser::ROLE_EDITOR => 'LABEL_EDITOR',
254
                        KnowledgeAreaCategoryUser::ROLE_EDITOR => 'LABEL_EDITOR',
-
 
255
                        KnowledgeAreaCategoryUser::ROLE_ADMINISTRATOR =>  'LABEL_ADMINISTRATOR',
255
                        KnowledgeAreaCategoryUser::ROLE_ADMINISTRATOR => 'LABEL_ADMINISTRATOR',
256
                    ];    
256
                    ];
257
                    
257
                } else {
258
                } else {
258
                    $roles = [
259
                    $roles = [
259
                        KnowledgeAreaCategoryUser::ROLE_EDITOR => 'LABEL_EDITOR',
260
                        KnowledgeAreaCategoryUser::ROLE_EDITOR => 'LABEL_EDITOR',
260
                        KnowledgeAreaCategoryUser::ROLE_ADMINISTRATOR => 'LABEL_ADMINISTRATOR',
261
                        KnowledgeAreaCategoryUser::ROLE_ADMINISTRATOR => 'LABEL_ADMINISTRATOR',
Línea -... Línea 262...
-
 
262
                    ];
261
                    ];
263
                }
Línea 262... Línea 264...
262
                }
264
                
263
                
265
                
Línea 270... Línea 272...
270
                foreach($records as $record)
272
                foreach($records as $record)
271
                {
273
                {
272
                    $jobDescription = $jobDescriptionMapper->fetchOne($record->job_description_id);
274
                    $jobDescription = $jobDescriptionMapper->fetchOne($record->job_description_id);
273
                    array_push($jobs_description, $jobDescription->uuid);
275
                    array_push($jobs_description, $jobDescription->uuid);
274
                }
276
                }
275
                
-
 
276
        
277
                   
Línea 277... Línea 278...
277
 
278
 
278
                return new JsonModel([
279
                return new JsonModel([
279
                    'success' => true,
280
                    'success' => true,
280
                    'data' => [
281
                    'data' => [