Index: trunk/extensions/Lockdown/Lockdown.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | # print "<br />nsAccessUserCan(".$title->getPrefixedDBkey().", ".$user->getName().", $action)<br />\n"; |
107 | 107 | # print_r($groups); |
108 | 108 | |
109 | | - $ugroups = $user->getEffectiveGroups(); |
| 109 | + $ugroups = $user->getEffectiveGroups( true );; |
110 | 110 | # print_r($ugroups); |
111 | 111 | |
112 | 112 | $match = array_intersect( $ugroups, $groups ); |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | return false; |
143 | 143 | } |
144 | 144 | |
145 | | - $ugroups = $user->getEffectiveGroups(); |
| 145 | + $ugroups = $user->getEffectiveGroups( true );; |
146 | 146 | $match = array_intersect( $ugroups, $groups ); |
147 | 147 | |
148 | 148 | if ( $match ) { |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | return true; |
161 | 161 | } |
162 | 162 | |
163 | | - $ugroups = $wgUser->getEffectiveGroups(); |
| 163 | + $ugroups = $wgUser->getEffectiveGroups( true );; |
164 | 164 | |
165 | 165 | foreach ( $arr as $ns => $name ) { |
166 | 166 | $groups = @$wgNamespacePermissionLockdown[$ns]['read']; |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | function lockdownTitle(&$title) { |
186 | 186 | if ( is_object($title) ) { |
187 | 187 | global $wgUser, $wgNamespacePermissionLockdown; |
188 | | - $ugroups = $wgUser->getEffectiveGroups(); |
| 188 | + $ugroups = $wgUser->getEffectiveGroups( true );; |
189 | 189 | |
190 | 190 | $groups = @$wgNamespacePermissionLockdown[$title->getNamespace()]['read']; |
191 | 191 | if ( $groups === null ) { |
— | — | @@ -219,7 +219,7 @@ |
220 | 220 | return true; |
221 | 221 | } |
222 | 222 | |
223 | | - $ugroups = $wgUser->getEffectiveGroups(); |
| 223 | + $ugroups = $wgUser->getEffectiveGroups( true );; |
224 | 224 | |
225 | 225 | foreach ( $searchEngine->namespaces as $key => $ns ) { |
226 | 226 | $groups = @$wgNamespacePermissionLockdown[$ns]['read']; |