mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #789, add url param hide_redirect_error
This commit is contained in:
@@ -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