Index: trunk/phase3/includes/api/ApiQueryUserInfo.php |
— | — | @@ -83,6 +83,11 @@ |
84 | 84 | $result->setIndexedTagName( $vals['groups'], 'g' ); // even if empty |
85 | 85 | } |
86 | 86 | |
| 87 | + if ( isset( $this->prop['implicitgroups'] ) ) { |
| 88 | + $vals['implicitgroups'] = ApiQueryUsers::getAutoGroups( $wgUser ); |
| 89 | + $result->setIndexedTagName( $vals['implicitgroups'], 'g' ); // even if empty |
| 90 | + } |
| 91 | + |
87 | 92 | if ( isset( $this->prop['rights'] ) ) { |
88 | 93 | // User::getRights() may return duplicate values, strip them |
89 | 94 | $vals['rights'] = array_values( array_unique( $wgUser->getRights() ) ); |
— | — | @@ -191,6 +196,7 @@ |
192 | 197 | 'blockinfo', |
193 | 198 | 'hasmsg', |
194 | 199 | 'groups', |
| 200 | + 'implicitgroups', |
195 | 201 | 'rights', |
196 | 202 | 'changeablegroups', |
197 | 203 | 'options', |
— | — | @@ -213,6 +219,7 @@ |
214 | 220 | ' blockinfo - Tags if the current user is blocked, by whom, and for what reason', |
215 | 221 | ' hasmsg - Adds a tag "message" if the current user has pending messages', |
216 | 222 | ' groups - Lists all the groups the current user belongs to', |
| 223 | + ' implicitgroups - Lists all the groups the current user is automatically a member of', |
217 | 224 | ' rights - Lists all the rights the current user has', |
218 | 225 | ' changeablegroups - Lists the groups the current user can add to and remove from', |
219 | 226 | ' options - Lists all preferences the current user has set', |