Extension:DisableAccount

From mediawiki.org
MediaWiki extensions manual
DisableAccount
Release status: stable
Implementation Special page
Description Allows administrators to disable individual accounts.
Author(s) Andrew Garrett (Werdnatalk)
MediaWiki 1.23+
PHP 5.4+
Database changes No
License GNU General Public License 2.0 or later
Download
disableaccount
Quarterly downloads 29 (Ranked 147th)
Translate the DisableAccount extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The DisableAccount extension allows administrators to disable individual users' wiki accounts.

Disabling an account will remove this user's password and email, and place it in an "inactive" user group. It is not reversible without system administrator intervention. To re-enable an account, remove it from the inactive user group, and reset its password using changePassword.php.

Installation[edit]

  • Download and place the file(s) in a directory called DisableAccount in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'DisableAccount' );
    $wgGroupPermissions['bureaucrat']['disableaccount'] = true;
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'DisableAccount' );, you need to use:

require_once "$IP/extensions/DisableAccount/DisableAccount.php";

The second line above assumes you want to give the disableaccount permission to users in the bureaucrat user group. Replace bureaucrat in the LocalSettings.php lines with the appropriate other user group, if you wish to use a different configuration. The permission should not be given to user groups that are automatically assigned or widely populated.