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:
plegall
2016-12-08 19:15:20 +01:00
parent 5c8528afec
commit 88c0ff76c5

View File

@@ -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');
}