Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -245,18 +245,26 @@ |
246 | 246 | } |
247 | 247 | |
248 | 248 | /** |
249 | | - * Gets all the groups that a user is automatically a member of |
| 249 | + * Gets all the groups that a user is automatically a member of (implicit groups) |
250 | 250 | * @param $user User |
251 | 251 | * @return array |
252 | 252 | */ |
253 | 253 | public static function getAutoGroups( $user ) { |
254 | | - $groups = array( '*' ); |
| 254 | + $groups = array(); |
| 255 | + $groups[] = '*'; |
255 | 256 | |
256 | 257 | if ( !$user->isAnon() ) { |
257 | 258 | $groups[] = 'user'; |
258 | 259 | } |
259 | 260 | |
260 | | - return array_merge( $groups, Autopromote::getAutopromoteGroups( $user ) ); |
| 261 | + $builtGroups = array(); |
| 262 | + $i = 0; |
| 263 | + foreach( array_merge( $groups, Autopromote::getAutopromoteGroups( $user ) ) as $g ) { |
| 264 | + $builtGroups[$i] = array( 'implicit' => '' ); |
| 265 | + ApiResult::setContent( $builtGroups[$i], $g ); |
| 266 | + $i++; |
| 267 | + } |
| 268 | + return $builtGroups; |
261 | 269 | } |
262 | 270 | |
263 | 271 | public function getCacheMode( $params ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -269,6 +269,8 @@ |
270 | 270 | * (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks) |
271 | 271 | is missing |
272 | 272 | * (bug 27343) Add parseddescription to list=filearchive |
| 273 | +* (bug 27469) label implicit groups in list=allusers&auprop=groups/ |
| 274 | + list=users&usprop=groups |
273 | 275 | |
274 | 276 | === Languages updated in 1.18 === |
275 | 277 | |