Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7382 Rev 7401
Línea 383... Línea 383...
383
    public function addAction()
383
    public function addAction()
384
    {
384
    {
385
        $currentUserPlugin = $this->plugin('currentUserPlugin');
385
        $currentUserPlugin = $this->plugin('currentUserPlugin');
386
        $currentUser = $currentUserPlugin->getUser();
386
        $currentUser = $currentUserPlugin->getUser();
387
        $currentCompany = $currentUserPlugin->getCompany();
387
        $currentCompany = $currentUserPlugin->getCompany();
-
 
388
        $type   = $this->params()->fromRoute('type');
-
 
389
        $response = [
-
 
390
            'success' => false,
-
 
391
            'data' => 'ERROR_METHOD_NOT_ALLOWED'
-
 
392
        ];
-
 
393
        return new JsonModel($response);
Línea 388... Línea 394...
388
        
394
        
389
        $request = $this->getRequest();
395
        $request = $this->getRequest();
390
        if($request->isPost()) {
396
        if($request->isPost()) {