mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #507, avoid error when guest_access is false
On identification.php, do not show the "... not authorized..." error message on redirection to when guest_access is false. This is "on purpose" and users don't need to get this message.
This commit is contained in:
@@ -37,7 +37,7 @@ $redirect_to = '';
|
||||
if ( !empty($_GET['redirect']) )
|
||||
{
|
||||
$redirect_to = urldecode($_GET['redirect']);
|
||||
if ( is_a_guest() )
|
||||
if ( is_a_guest() and $conf['guest_access'] )
|
||||
{
|
||||
$page['errors'][] = l10n('You are not authorized to access the requested page');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user