mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +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:
@@ -185,19 +185,6 @@ if ($conf['gallery_locked'])
|
||||
}
|
||||
}
|
||||
|
||||
if ($user['is_the_guest'] and !$conf['guest_access']
|
||||
and !in_array( script_basename(),
|
||||
// Array of basename without file extention
|
||||
array('identification',
|
||||
'password',
|
||||
'register'
|
||||
)
|
||||
)
|
||||
)
|
||||
{
|
||||
redirect (get_absolute_root_url(false).'identification.php');
|
||||
}
|
||||
|
||||
if ($conf['check_upgrade_feed']
|
||||
and defined('PHPWG_IN_UPGRADE')
|
||||
and PHPWG_IN_UPGRADE)
|
||||
|
||||
Reference in New Issue
Block a user