* …
=== Bug fixes in 1.33 ===
+* (T164211) Special:UserRights could sometimes fail with a
+ "conflict detected" error when there weren't any conflicts.
* …
=== Action API changes in 1.33 ===
$targetUser->clearInstanceCache(); // T40989
}
- if ( $request->getVal( 'conflictcheck-originalgroups' )
- !== implode( ',', $targetUser->getGroups() )
- ) {
+ $checkValue = explode( ',', $request->getVal( 'conflictcheck-originalgroups' ) );
+ $userGroups = $targetUser->getGroups();
+
+ if ( $userGroups !== $checkValue ) {
$out->addWikiMsg( 'userrights-conflict' );
} else {
$status = $this->saveUserGroups(
/**
* @const int Serialized record version.
*/
- const VERSION = 12;
+ const VERSION = 13;
/**
* Exclude user options that are set to their default value.
/**
* Get the list of explicit group memberships this user has.
* The implicit * and user groups are not included.
- * @return array Array of String internal group names
+ *
+ * @return string[] Array of internal group names (sorted since 1.33)
*/
public function getGroups() {
$this->load();
$ugms[$ugm->group] = $ugm;
}
}
+ ksort( $ugms );
return $ugms;
}