Skip to content

Commit 15b07a7

Browse files
authored
restore ability to create other super users (#1014)
* restore ability to create other super users * correctly initialise the privileges array
1 parent 33c74f7 commit 15b07a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public_html/lists/admin/admin.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
echo Error(s('No Access'));
1919
return;
2020
}
21+
$accesslevel = 'all';
2122

2223
if (!empty($_POST['change'])) {
2324
if (!verifyToken()) { //# csrf check, should be added in more places
@@ -157,7 +158,7 @@
157158
if (isset($data['privileges'])) {
158159
$privileges = unserialize($data['privileges']);
159160
} else {
160-
$privileges = array();
161+
$privileges = array('subscribers' => 0, 'campaigns' => 0, 'statistics' => 0, 'settings' => 0);
161162
}
162163

163164
reset($struct);

0 commit comments

Comments
 (0)