fixes #789, add url param hide_redirect_error

This commit is contained in:
plegall
2017-10-04 10:35:33 +02:00
parent 164b59588c
commit 977588999a

View File

@@ -53,7 +53,7 @@ $redirect_to = '';
if ( !empty($_GET['redirect']) ) if ( !empty($_GET['redirect']) )
{ {
$redirect_to = urldecode($_GET['redirect']); $redirect_to = urldecode($_GET['redirect']);
if ( is_a_guest() and $conf['guest_access'] ) if ( $conf['guest_access'] and !isset($_GET['hide_redirect_error']))
{ {
$page['errors'][] = l10n('You are not authorized to access the requested page'); $page['errors'][] = l10n('You are not authorized to access the requested page');
} }