Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -225,7 +225,13 @@ |
226 | 226 | * @return array |
227 | 227 | */ |
228 | 228 | public static function getAutoGroups( $user ) { |
229 | | - return array_merge( array( '*', 'user' ), Autopromote::getAutopromoteGroups( $user ) ); |
| 229 | + $groups = array( '*' ); |
| 230 | + |
| 231 | + if ( !$user->isAnon() ) { |
| 232 | + $groups[] = 'user'; |
| 233 | + } |
| 234 | + |
| 235 | + return array_merge( $groups, Autopromote::getAutopromoteGroups( $user ) ); |
230 | 236 | } |
231 | 237 | |
232 | 238 | public function getAllowedParams() { |