Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 167 Rev 192
Línea 224... Línea 224...
224
            $content = json_encode(['success' => false, 'data' => '200 Unauthorized - Private network - inactive', 'fatal' => true]);
224
            $content = json_encode(['success' => false, 'data' => '200 Unauthorized - Private network - inactive', 'fatal' => true]);
225
            $this->sendResponse($response, $code, $content);
225
            $this->sendResponse($response, $code, $content);
Línea 226... Línea 226...
226
 
226
 
Línea -... Línea 227...
-
 
227
        }
-
 
228
        
Línea 227... Línea 229...
227
        }
229
 
228
        
230
        
229
        
231
        
Línea 351... Línea 353...
351
        if(strlen($routeName) > 0 && substr($routeName, 0, 1) == '/') {
353
        if(strlen($routeName) > 0 && substr($routeName, 0, 1) == '/') {
352
            $routeName = substr($routeName, 1);
354
            $routeName = substr($routeName, 1);
353
        }
355
        }
Línea 354... Línea 356...
354
        
356
        
-
 
357
        $this->currentUserPlugin = new CurrentUserPlugin($adapter);
355
        $this->currentUserPlugin = new CurrentUserPlugin($adapter);
358
        if($this->currentUserPlugin->hasIdentity()) {
-
 
359
            
-
 
360
            if(User::STATUS_BANNED == $this->currentUserPlugin->getUser()->status) {
-
 
361
                
-
 
362
                $code = 200;
-
 
363
                $content = json_encode(['success' => false, 'data' => '403 Forbidden - Banned', 'fatal' => true]);
-
 
364
                $this->sendResponse($response, $code, $content);
-
 
365
            }
-
 
366
            
Línea 356... Línea 367...
356
        
367
        }
357
        
368
        
358
        if($this->authByOTP && substr($routeName, 0, 8) == 'services') {
369
        if($this->authByOTP && substr($routeName, 0, 8) == 'services') {
359
            $checkUserForNetwork = false;
370
            $checkUserForNetwork = false;