From 88c0ff76c5ac94314439623eebe614eb4dd6b312 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 8 Dec 2016 19:15:20 +0100 Subject: [PATCH] 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. --- identification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identification.php b/identification.php index 3e5ab1560..6490f5f86 100644 --- a/identification.php +++ b/identification.php @@ -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'); }