From: Rotem Liss Date: Sat, 8 Jul 2006 10:56:02 +0000 (+0000) Subject: Adding 'emailconfirmed' to the groups which are not included in the group list, as... X-Git-Tag: 1.31.0-rc.0~56351 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=337e6454da9a99abde9e268b86141c4c64ad900a;p=lhc%2Fweb%2Fwiklou.git 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. --- 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' ) ); } /**