Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3647 Rev 3790
Línea 185... Línea 185...
185
        
185
        
186
        
186
        
187
        
187
        
188
        $this->currentNetworkPlugin = new CurrentNetworkPlugin($adapter);
188
        $this->currentNetworkPlugin = new CurrentNetworkPlugin($adapter);
189
        if(!$this->currentNetworkPlugin->hasNetwork()) {
189
        if(!$this->currentNetworkPlugin->hasNetwork()) {
190
            echo '2';
-
 
191
            exit;
190
            $this->isJson = true;
Línea 192... Línea 191...
192
            header("HTTP/1.1 401 Unauthorized - Private network - not found");
191
            $response = $event->getResponse();
193
            exit;
192
            $this->sendResponse($response, ['success' => false, 'data' => '401 Unauthorized - Private network - not found', 'fatal' => true]);
194
        }
193
        }
195
        
194
        
196
        if($this->currentNetworkPlugin->getNetwork()->status == Network::STATUS_INACTIVE) {
-
 
-
 
195
        if($this->currentNetworkPlugin->getNetwork()->status == Network::STATUS_INACTIVE) {
197
            echo '3';
196
            $this->isJson = true;
Línea 198... Línea 197...
198
            exit;
197
            $response = $event->getResponse();
199
            header("HTTP/1.1 401 Unauthorized - Private network - inactive");
198
            $this->sendResponse($response, ['success' => false, 'data' => '401 Unauthorized - Private network - inactive', 'fatal' => true]);
Línea 270... Línea 269...
270
        if($checkUserForNetwork) {
269
        if($checkUserForNetwork) {
Línea 271... Línea 270...
271
        
270
        
-
 
271
   
272
   
272
            
273
            
273
            if($this->currentUserPlugin->getUser()->network_id != $this->currentNetworkPlugin->getNetworkId()) {
-
 
274
                
-
 
275
                $this->isJson = true;
274
            if($this->currentUserPlugin->getUser()->network_id != $this->currentNetworkPlugin->getNetworkId()) {
276
                $response = $event->getResponse();
275
                header("HTTP/1.1 401 Unauthorized - The user is not part of this private network");
277
                $this->sendResponse($response, ['success' => false, 'data' => '401 Unauthorized - The user is not part of this private network', 'fatal' => true]);