From 02aa1fcfd68e3a6b5614cfd7b672a2f6536ecf2a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 8 Feb 2023 10:37:11 +0000 Subject: [PATCH] wait #5717 @0.75 --- inc/postconfig.inc.php | 2 ++ inc/ws/Controlleur/class.ws.droits.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/postconfig.inc.php b/inc/postconfig.inc.php index 7bab2217c..13fe8fd60 100644 --- a/inc/postconfig.inc.php +++ b/inc/postconfig.inc.php @@ -42,8 +42,10 @@ define('WS_URL', SCHEME . '://workshop.fluidbook.com'); if ($ws) { define('MODE', 'ws'); + define('SITE_URL',WS_URL); } elseif ($extranet) { define('MODE', 'extranet'); + define('SITE_URL',EXTRANET_URL); } define('STATIC_SERVER', SCHEME . '://' . $_SERVER['HTTP_HOST'] . WEBROOT); diff --git a/inc/ws/Controlleur/class.ws.droits.php b/inc/ws/Controlleur/class.ws.droits.php index f4efed912..714816e6d 100644 --- a/inc/ws/Controlleur/class.ws.droits.php +++ b/inc/ws/Controlleur/class.ws.droits.php @@ -141,7 +141,7 @@ class wsDroits return true; } $daoBook = new wsDAOBook($core->con); - $books = $daoBook->getListe(null, null, null, true); + $books = $daoBook->getListe(null, null, null, $core->user); foreach ($books as $book) { if ($book->book_id == $book_id) { return true; -- 2.39.5