From 337e6454da9a99abde9e268b86141c4c64ad900a Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 8 Jul 2006 10:56:02 +0000 Subject: [PATCH] Adding 'emailconfirmed' to the groups which are not included in the group list, as it is not defined in the database, and should not be changed via Special:Userrights or Special:Makesysop. --- includes/User.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/User.php b/includes/User.php index 36af6ba2fe..f24262844d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1951,7 +1951,9 @@ class User { /** * Return the set of defined explicit groups. - * The * and 'user' groups are not included. + * The *, 'user', 'autoconfirmed' and 'emailconfirmed' + * groups are not included, as they are defined + * automatically, not in the database. * @return array * @static */ @@ -1959,7 +1961,7 @@ class User { global $wgGroupPermissions; return array_diff( array_keys( $wgGroupPermissions ), - array( '*', 'user', 'autoconfirmed' ) ); + array( '*', 'user', 'autoconfirmed', 'emailconfirmed' ) ); } /** -- 2.20.1