mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-17 07:03:11 +02:00
- change the way conf['guest_access'] is handled so that web services work correctly (and also nbm.php and feed.php)
git-svn-id: http://piwigo.org/svn/trunk@1850 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -86,7 +86,6 @@ SELECT user_id,
|
||||
}
|
||||
if ($feed_row['user_id']!=$user['id'])
|
||||
{ // new user
|
||||
$user = array();
|
||||
$user = build_user( $feed_row['user_id'], true );
|
||||
}
|
||||
}
|
||||
@@ -95,11 +94,13 @@ else
|
||||
$image_only = true;
|
||||
if (!$user['is_the_guest'])
|
||||
{// auto session was created - so switch to guest
|
||||
$user = array();
|
||||
$user = build_user( $conf['guest_id'], true );
|
||||
}
|
||||
}
|
||||
|
||||
// Check the status now after the user has been loaded
|
||||
check_status(ACCESS_GUEST);
|
||||
|
||||
list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'include/feedcreator.class.php');
|
||||
|
||||
Reference in New Issue
Block a user