mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1594 in guest_access=false mode, hide menus for guests
This commit is contained in:
@@ -22,7 +22,12 @@ function initialize_menu()
|
||||
global $page, $conf, $user, $template, $filter;
|
||||
|
||||
$menu = new BlockManager("menubar");
|
||||
$menu->load_registered_blocks();
|
||||
|
||||
// if guest_access is disabled, we only display the menus if the user is identified
|
||||
if ($conf['guest_access'] or !is_a_guest())
|
||||
{
|
||||
$menu->load_registered_blocks();
|
||||
}
|
||||
$menu->prepare_display();
|
||||
|
||||
if ( @$page['section']=='search' and isset($page['qsearch_details']) )
|
||||
|
||||
Reference in New Issue
Block a user