Add bot to createAndPromote.php groups
- Added 'bot', a default usergroup, to $permitRoles - Changed 'administrator rights' to just 'rights', since the script isn't just for administrator rights Bug: 45160 Change-Id: I61348e2d45b90b65a117efcce65d7c581105e612
This commit is contained in:
parent
5848c65876
commit
7bb5b846ec
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Creates an account and grant it administrator rights.
|
||||
* Creates an account and grants it rights.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -26,13 +26,13 @@
|
|||
require_once __DIR__ . '/Maintenance.php';
|
||||
|
||||
/**
|
||||
* Maintenance script to create an account and grant it administrator rights.
|
||||
* Maintenance script to create an account and grant it rights.
|
||||
*
|
||||
* @ingroup Maintenance
|
||||
*/
|
||||
class CreateAndPromote extends Maintenance {
|
||||
|
||||
static $permitRoles = array( 'sysop', 'bureaucrat' );
|
||||
static $permitRoles = array( 'sysop', 'bureaucrat', 'bot' );
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
|
|
|||
Loading…
Reference in a new issue