mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 14:58:43 +02:00
Fixed bugs linked to the bookmark creation:
- There must be a user specific menu entry in the list of menuNodes - The asynchronous ajax page must use the authentication stored in the session - The query must be stored in OQL instead of sibusQL SVN:0.7[57]
This commit is contained in:
@@ -6,10 +6,18 @@ require_once('../application/wizardhelper.class.inc.php');
|
||||
require_once('../application/ui.linkswidget.class.inc.php');
|
||||
|
||||
require_once('../application/startup.inc.php');
|
||||
if (isset($_SERVER['PHP_AUTH_USER']))
|
||||
session_start();
|
||||
if (isset($_SESSION['auth_user']))
|
||||
{
|
||||
$sAuthUser = $_SESSION['auth_user'];
|
||||
$sAuthPwd = $_SESSION['auth_pwd'];
|
||||
// Attempt to login, fails silently
|
||||
UserRights::Login($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);
|
||||
UserRights::Login($sAuthUser, $sAuthPwd);
|
||||
}
|
||||
else
|
||||
{
|
||||
// No session information
|
||||
echo "<p>No session information</p>\n";
|
||||
}
|
||||
|
||||
$oPage = new ajax_page("");
|
||||
|
||||
Reference in New Issue
Block a user