Skip to content

Commit 497d66a

Browse files
michieldmarianaballa
authored andcommitted
move updater into the system menu
1 parent 6feced3 commit 497d66a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

public_html/lists/admin/connect.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ function pageTitle($page)
723723
'generatebouncerules',
724724
'initialise',
725725
'upgrade',
726+
'redirecttoupdater',
726727
'processqueue',
727728
'processbounces',
728729
'reindex',
@@ -736,6 +737,7 @@ function pageTitle($page)
736737
'eventlog',
737738
'initialise',
738739
'upgrade',
740+
'redirecttoupdater',
739741
'bouncemgt',
740742
'processqueue',
741743
// 'processbounces',
@@ -797,12 +799,14 @@ function pageTitle($page)
797799
//'menulinks' => array(),
798800
//),
799801
);
800-
if(isSuperUser() && ALLOW_UPDATER){
801-
$GLOBALS['pagecategories']['update'] = array(
802-
'toplink'=> 'redirecttoupdater',
803-
'pages' => array(),
804-
'menulinks' => array(),
805-
);
802+
if(!isSuperUser() || !ALLOW_UPDATER){
803+
// $GLOBALS['pagecategories']['update'] = array(
804+
// 'toplink'=> 'redirecttoupdater',
805+
// 'pages' => array(),
806+
// 'menulinks' => array(),
807+
// );
808+
unset($GLOBALS['pagecategories']['system']['pages']['redirecttoupdater']);
809+
unset($GLOBALS['pagecategories']['system']['menulinks']['redirecttoupdater']);
806810
}
807811
if (DEVVERSION) {
808812
$GLOBALS['pagecategories']['develop'] = array(

0 commit comments

Comments
 (0)