From 15b07a7f3c3342b2a0190c003c510f133fc5e447 Mon Sep 17 00:00:00 2001 From: Michiel Dethmers Date: Thu, 28 Mar 2024 14:39:16 +0000 Subject: [PATCH] restore ability to create other super users (#1014) * restore ability to create other super users * correctly initialise the privileges array --- public_html/lists/admin/admin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/lists/admin/admin.php b/public_html/lists/admin/admin.php index 9808aa721..f505ee747 100644 --- a/public_html/lists/admin/admin.php +++ b/public_html/lists/admin/admin.php @@ -18,6 +18,7 @@ echo Error(s('No Access')); return; } +$accesslevel = 'all'; if (!empty($_POST['change'])) { if (!verifyToken()) { //# csrf check, should be added in more places @@ -157,7 +158,7 @@ if (isset($data['privileges'])) { $privileges = unserialize($data['privileges']); } else { - $privileges = array(); + $privileges = array('subscribers' => 0, 'campaigns' => 0, 'statistics' => 0, 'settings' => 0); } reset($struct);