From 1a0691531bc1bbabad7badc40aaae7bd83ece18e Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Tue, 16 Jun 2009 09:40:50 +0000 Subject: [PATCH] Fix bug in global auth caused by r48970 (I think). You need to call this->changeableGroups, not wgUser->changeableGroups --- includes/specials/SpecialUserrights.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 3b98da6716..c95f8bf234 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -154,6 +154,7 @@ class UserrightsPage extends SpecialPage { $removegroup[] = $group; } } + $this->doSaveUserGroups( $user, $addgroup, $removegroup, $reason ); } @@ -172,7 +173,7 @@ class UserrightsPage extends SpecialPage { // Validate input set... $isself = ($user->getName() == $wgUser->getName()); $groups = $user->getGroups(); - $changeable = $wgUser->changeableGroups(); + $changeable = $this->changeableGroups(); $addable = array_merge( $changeable['add'], $isself ? $changeable['add-self'] : array() ); $removable = array_merge( $changeable['remove'], $isself ? $changeable['remove-self'] : array() ); -- 2.20.1