Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -534,8 +534,13 @@ |
535 | 535 | } |
536 | 536 | |
537 | 537 | static function onUserRightsLogEntry( $user, $oldGroups, $newGroups, $reason ) { |
538 | | - SpecialGlobalGroupMembership::addLogEntry( $user, $oldGroups, |
539 | | - $newGroups, $reason ); |
540 | | - return false; |
| 538 | + // Ugly hack for detecting whether we were called by core |
| 539 | + // userrights or ours |
| 540 | + if( $user instanceof CentralAuthGroupMembershipProxy ) { |
| 541 | + SpecialGlobalGroupMembership::addLogEntry( $user, |
| 542 | + $oldGroups, $newGroups, $reason ); |
| 543 | + return false; |
| 544 | + } |
| 545 | + return true; |
541 | 546 | } |
542 | 547 | } |