mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-09 23:12:31 +01:00
fixes #789, add url param hide_redirect_error
This commit is contained in:
1 parent
164b59588c
commit
977588999a
1 file changed
+1
-1
+1
-1
@@ -53,7 +53,7 @@ $redirect_to = '';
|
||||
if ( !empty($_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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user