Explorar el Código

Revert for utils.inc.php

AntonLV hace 2 años
padre
commit
f90dc5fd41
Se han modificado 1 ficheros con 0 adiciones y 9 borrados
  1. 0 9
      inc/utils.inc.php

+ 0 - 9
inc/utils.inc.php

@@ -2399,7 +2399,6 @@ function bx_api_check_access()
             exit;
         }
     }
-    /*
     elseif (getParam('sys_api_access_by_origin') && $sOriginHeader) {
 
         if (parse_url($sOriginHeader, PHP_URL_HOST) != parse_url(BX_DOL_URL_ROOT, PHP_URL_HOST)) {
@@ -2424,14 +2423,6 @@ function bx_api_check_access()
         header('HTTP/1.0 403 Forbidden');
         echo json_encode(['status' => 403, 'error' => _t("_Access denied")]);
         exit;
-    }
-     * 
-     */
-
-    if (isset($_GET['demo']) && $_GET['demo'] == 1 ){
-        bx_login(1);
-        check_logged();
-        
     }
 
     // TODO: Temporarily to use logged state