Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8397 Rev 8398
Línea 161... Línea 161...
161
                    'success' => false,
161
                    'success' => false,
162
                    'data' => 'ERROR_POST_NOT_FOUND'
162
                    'data' => 'ERROR_POST_NOT_FOUND'
163
                ];
163
                ];
164
                return new JsonModel($response);
164
                return new JsonModel($response);
165
            }
165
            }
166
            $response = [
-
 
167
                'success' => false,
-
 
168
                'data' => 'ERROR_UNsadsadAUTHORIZED'
-
 
169
            ];
166
            
170
            return new JsonModel($response);
-
 
171
            if($feed->company_id != $currentCompany->id) {
167
            if($feed->company_id != $currentCompany->id) {
172
                $response = [
168
                $response = [
173
                    'success' => false,
169
                    'success' => false,
174
                    'data' => 'ERROR_UNAUTHORIZED'
170
                    'data' => 'ERROR_UNAUTHORIZED'
175
                ];
171
                ];
Línea 177... Línea 173...
177
            }
173
            }
Línea 178... Línea 174...
178
            
174
            
179
            $dataPost = $request->getPost()->toArray();
175
            $dataPost = $request->getPost()->toArray();
180
            $form = new CommentForm();
176
            $form = new CommentForm();
-
 
177
            $form->setData($dataPost);
-
 
178
            $response = [
-
 
179
                'success' => false,
181
            $form->setData($dataPost);
180
                'data' => 'ERROR_UNsadsadAUTHORIZED'
-
 
181
            ];
182
            
182
            return new JsonModel($response);
183
            if($form->isValid()) {
183
            if($form->isValid()) {
184
                $companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
184
                $companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
Línea 185... Línea 185...
185
                $owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);
185
                $owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);