mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
fixes #1594 in guest_access=false mode, hide menus for guests
This commit is contained in:
parent
4acfca116b
commit
303f8b87a3
1 changed files with 6 additions and 1 deletions
|
@ -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']) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue