diff --git a/bureau/admin/adm_cancel.php b/bureau/admin/adm_cancel.php index ca3ec31f..3726b373 100644 --- a/bureau/admin/adm_cancel.php +++ b/bureau/admin/adm_cancel.php @@ -31,5 +31,6 @@ require_once("../class/config.php"); setcookie('oldid','',0,'/'); unset($_COOKIE['oldid']); -require_once("main.php"); + +Header('Location: /main.php'); diff --git a/bureau/admin/adm_update_domains.php b/bureau/admin/adm_update_domains.php index 0b8df6d0..6e91e501 100644 --- a/bureau/admin/adm_update_domains.php +++ b/bureau/admin/adm_update_domains.php @@ -30,8 +30,10 @@ require_once("../class/config.php"); if (!$admin->enabled) { - __("This page is restricted to authorized staff"); - exit(); + if ( ! ( $isinvited && isset($oldid) && !empty($oldid) && $oldid==2000) ) { // Allow sub admins + __("This page is restricted to authorized staff"); + exit(); + } } if (! isset($L_INOTIFY_UPDATE_DOMAIN)) { diff --git a/bureau/admin/head.php b/bureau/admin/head.php index 114aa0eb..13a00d4a 100644 --- a/bureau/admin/head.php +++ b/bureau/admin/head.php @@ -45,7 +45,6 @@ if (!$charset) $charset="UTF-8"; -
"; - __("Administrator session. you may return to your account or cancel this feature"); + __("Administrator session. you may return to your account or cancel this feature."); + if ($oldid == 2000) echo ' '._("You can also apply changes."); // Yes, hardcoded uid. We will rewrite permissions another day echo "
"; } ?>