Skip to content

Commit

Permalink
restore ability to create other super users (#1014)
Browse files Browse the repository at this point in the history
* restore ability to create other super users

* correctly initialise the privileges array
  • Loading branch information
michield committed Mar 28, 2024
1 parent 33c74f7 commit 15b07a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public_html/lists/admin/admin.php
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 15b07a7

Please sign in to comment.