Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12923 Rev 12933
Línea 351... Línea 351...
351
    {
351
    {
352
      $currentUserPlugin = $this->plugin('currentUserPlugin');
352
      $currentUserPlugin = $this->plugin('currentUserPlugin');
353
        $currentUser = $currentUserPlugin->getUser();
353
        $currentUser = $currentUserPlugin->getUser();
354
        $currentCompany = $currentUserPlugin->getCompany();
354
        $currentCompany = $currentUserPlugin->getCompany();
355
        $objective_uuid = $this->params()->fromRoute('objective_id');
355
        $objective_uuid = $this->params()->fromRoute('objective_id');
356
        return new JsonModel([
-
 
357
            'success' => false,
-
 
358
            'data' => 'ERROR_UNAUTHORIZED'
-
 
359
        ]);
356
       
360
        if(!$objective_uuid) {
357
        if(!$objective_uuid) {
361
            $data = [
358
            $data = [
362
                'success'   => false,
359
                'success'   => false,
363
                'data'   => 'ERROR_INVALID_PARAMETER'
360
                'data'   => 'ERROR_INVALID_PARAMETER'
364
            ];
361
            ];