Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7394 Rev 7395
Línea 72... Línea 72...
72
        $request = $this->getRequest();
72
        $request = $this->getRequest();
73
        $currentUserPlugin = $this->plugin('currentUserPlugin');
73
        $currentUserPlugin = $this->plugin('currentUserPlugin');
74
        $currentCompany = $currentUserPlugin->getCompany();
74
        $currentCompany = $currentUserPlugin->getCompany();
75
        $currentUser = $currentUserPlugin->getUser();
75
        $currentUser = $currentUserPlugin->getUser();
Línea 76... Línea 76...
76
 
76
 
77
        try{
77
       
78
        $request = $this->getRequest();
78
        $request = $this->getRequest();
Línea 79... Línea 79...
79
        if ($request->isGet()) {
79
        if ($request->isGet()) {
Línea 176... Línea 176...
176
                'success' => false,
176
                'success' => false,
177
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
177
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
178
            ]);
178
            ]);
Línea 179... Línea 179...
179
            
179
            
180
        }
-
 
181
        } catch (\Throwable $e) {
-
 
182
            $e->getMessage();
-
 
183
            return new JsonModel([
-
 
184
                'success' => false,
-
 
185
                'data' => $e
-
 
186
            ]);
180
        }
187
        }
181
       
Línea 188... Línea 182...
188
    }
182
    }
189
 
183
 
190
    public function addAction() {
184
    public function addAction() {