Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6689 Rev 6690
Línea 718... Línea 718...
718
        $currentCompany = $currentUserPlugin->getCompany();
718
        $currentCompany = $currentUserPlugin->getCompany();
719
        $currentUser = $currentUserPlugin->getUser();
719
        $currentUser = $currentUserPlugin->getUser();
Línea 720... Línea 720...
720
 
720
 
721
        $request = $this->getRequest();
721
        $request = $this->getRequest();
722
        $uuid = $this->params()->fromRoute('id');
-
 
723
        return new JsonModel([
-
 
724
            'success' => false,
-
 
725
            'data' => 'ERROR_UNAUTHORIZED'
722
        $uuid = $this->params()->fromRoute('id');
Línea 726... Línea 723...
726
        ]);
723
       
727
 
724
 
728
        if (!$uuid) {
725
        if (!$uuid) {
729
            $data = [
726
            $data = [
730
                'success' => false,
727
                'success' => false,
Línea 731... Línea 728...
731
                'data' => 'ERROR_INVALID_PARAMETER'
728
                'data' => 'ERROR_INVALID_PARAMETER'
732
            ];
729
            ];
-
 
730
 
-
 
731
            return new JsonModel($data);
-
 
732
        }
-
 
733
        return new JsonModel([
Línea 733... Línea 734...
733
 
734
            'success' => false,
734
            return new JsonModel($data);
735
            'data' => 'ERROR_UNAUTHORIZED'
Línea 735... Línea 736...
735
        }
736
        ]);