Skip to content

Commit 96f1245

Browse files
authored
Restrict createaccount permission to bureaucrats (#305)
Bug: T322665
1 parent 7e4fc42 commit 96f1245

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

dist-persist/wbstack/src/Settings/LocalSettings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ function onPersonalUrlsConfirmAccount( array &$personal_urls, Title $title, Skin
396396
}
397397
return true;
398398
}
399+
// fix known issue for mediawiki newer than 1.35 to prevent unapproved creation
400+
$wgGroupPermissions['*']['createaccount'] = false;
401+
$wgGroupPermissions['bureaucrat']['createaccount'] = true;
399402
}
400403

401404
# InviteSignup (only loaded when the setting is on)

dist/wbstack/src/Settings/LocalSettings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ function onPersonalUrlsConfirmAccount( array &$personal_urls, Title $title, Skin
396396
}
397397
return true;
398398
}
399+
// fix known issue for mediawiki newer than 1.35 to prevent unapproved creation
400+
$wgGroupPermissions['*']['createaccount'] = false;
401+
$wgGroupPermissions['bureaucrat']['createaccount'] = true;
399402
}
400403

401404
# InviteSignup (only loaded when the setting is on)

0 commit comments

Comments
 (0)