Fix: A private menu must not be visible by all

This commit is contained in:
Laurent Destailleur 2011-05-02 20:42:48 +00:00
parent 99d948daa9
commit b85853a191

View File

@ -68,7 +68,7 @@ function printBookmarksList ($aDb, $aLangs)
if (! empty($conf->global->BOOKMARKS_SHOW_IN_MENU))
{
$sql = "SELECT rowid, title, url, target FROM ".MAIN_DB_PREFIX."bookmark";
if (! $user->admin) $sql.= " WHERE (fk_user = ".$user->id." OR fk_user is NULL OR fk_user = 0)";
$sql.= " WHERE (fk_user = ".$user->id." OR fk_user is NULL OR fk_user = 0)";
$sql.= " ORDER BY position";
if ($resql = $db->query($sql) )
{