\r
if ($ws) {\r
define('MODE', 'ws');\r
+ define('SITE_URL',WS_URL);\r
} elseif ($extranet) {\r
define('MODE', 'extranet');\r
+ define('SITE_URL',EXTRANET_URL);\r
}\r
\r
define('STATIC_SERVER', SCHEME . '://' . $_SERVER['HTTP_HOST'] . WEBROOT);\r
return true;\r
}\r
$daoBook = new wsDAOBook($core->con);\r
- $books = $daoBook->getListe(null, null, null, true);\r
+ $books = $daoBook->getListe(null, null, null, $core->user);\r
foreach ($books as $book) {\r
if ($book->book_id == $book_id) {\r
return true;\r