From f53117466678189c7189da0e01dbccf03d2320ff Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 21 Jun 2023 12:46:03 +0000 Subject: [PATCH] wip #6068 @0.25 --- inc/extranet/Controlleur/class.extranet.url.php | 3 +++ inc/ws/Controlleur/class.ws.url.php | 17 ++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/inc/extranet/Controlleur/class.extranet.url.php b/inc/extranet/Controlleur/class.extranet.url.php index b86094524..df6a40b25 100644 --- a/inc/extranet/Controlleur/class.extranet.url.php +++ b/inc/extranet/Controlleur/class.extranet.url.php @@ -6,6 +6,9 @@ class extranetUrl public static function clients($args) { global $core; + header('Location: https://toolbox.fluidbook.com/company'); + exit; + cubePage::truePopup(); cubePage::autoComplete(); cubePage::emptyfield(); diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 677d14cd2..de85a15ae 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -1165,7 +1165,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co $book = $dao->selectById($book_id); - if (null===$book || ($hash != 'bcf26f9cf4a795ec00b9a44f42750d58' && $book->hash != $hash)) { + if (null === $book || ($hash != 'bcf26f9cf4a795ec00b9a44f42750d58' && $book->hash != $hash)) { commonDroits::error(); } @@ -1503,11 +1503,14 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co { global $core; + header('Location: https://toolbox.fluidbook.com/company'); + exit; + cubePage::truePopup(); cubePage::autoComplete(); cubePage::emptyfield(); commonDroits::min(3); - if(!wsDroits::canManageClients()){ + if (!wsDroits::canManageClients()) { commonDroits::error(); } $settings = $core->user->getSettings('clients_ws'); @@ -1536,7 +1539,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co { global $core; commonDroits::min(3); - if(!wsDroits::canManageClients()){ + if (!wsDroits::canManageClients()) { commonDroits::error(); } $settings = is_null($settings) ? $core->user->getSettings('clients_ws') : $settings; @@ -1626,7 +1629,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co { global $core; commonDroits::min(3); - if(!wsDroits::canManageClients()){ + if (!wsDroits::canManageClients()) { commonDroits::error(); } $dao = new commonDAOEntreprise($core->con); @@ -1701,7 +1704,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co { global $core; commonDroits::min(3); - if(!wsDroits::canManageClients()){ + if (!wsDroits::canManageClients()) { commonDroits::error(); } $dao = new commonDAOEntreprise($core->con); @@ -1743,7 +1746,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co { global $core; commonDroits::min(3); - if(!wsDroits::canManageClients()){ + if (!wsDroits::canManageClients()) { commonDroits::error(); } @@ -1784,7 +1787,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co public static function demandes() { - if(!wsDroits::canManageClients()){ + if (!wsDroits::canManageClients()) { commonDroits::error(); } http::redirect('https://toolbox.fluidbook.com/fluidbook-quote'); -- 2.39.5