r98332 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98331‎ | r98332 | r98333 >
Date:17:01, 28 September 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r98329

Change ApiQueryInfo to match also
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryUserInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryUserInfo.php
@@ -83,6 +83,11 @@
8484 $result->setIndexedTagName( $vals['groups'], 'g' ); // even if empty
8585 }
8686
 87+ if ( isset( $this->prop['implicitgroups'] ) ) {
 88+ $vals['implicitgroups'] = ApiQueryUsers::getAutoGroups( $wgUser );
 89+ $result->setIndexedTagName( $vals['implicitgroups'], 'g' ); // even if empty
 90+ }
 91+
8792 if ( isset( $this->prop['rights'] ) ) {
8893 // User::getRights() may return duplicate values, strip them
8994 $vals['rights'] = array_values( array_unique( $wgUser->getRights() ) );
@@ -191,6 +196,7 @@
192197 'blockinfo',
193198 'hasmsg',
194199 'groups',
 200+ 'implicitgroups',
195201 'rights',
196202 'changeablegroups',
197203 'options',
@@ -213,6 +219,7 @@
214220 ' blockinfo - Tags if the current user is blocked, by whom, and for what reason',
215221 ' hasmsg - Adds a tag "message" if the current user has pending messages',
216222 ' groups - Lists all the groups the current user belongs to',
 223+ ' implicitgroups - Lists all the groups the current user is automatically a member of',
217224 ' rights - Lists all the rights the current user has',
218225 ' changeablegroups - Lists the groups the current user can add to and remove from',
219226 ' options - Lists all preferences the current user has set',

Follow-up revisions

RevisionCommit summaryAuthorDate
r98356MFT r98329, r98332 (and whitespace for ApiQueryAllUsers from r98330)reedy19:34, 28 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98329Bug 31199 - Fix notification of implicit groups so it doesn't massively chang...reedy16:36, 28 September 2011

Status & tagging log