Index: trunk/extensions/NSFileRepo/NSFileRepo.php |
— | — | @@ -247,6 +247,8 @@ |
248 | 248 | // If Extension:Lockdown has been activated (recommend), check individual namespace protection |
249 | 249 | |
250 | 250 | function NSFileRepolockdownUserCan($title, $user, $action, &$result) { |
| 251 | + global $wgWhitelistRead; |
| 252 | + if (in_array($title->getPrefixedText(), $wgWhitelistRead)) return true; |
251 | 253 | if (function_exists('lockdownUserCan')){ |
252 | 254 | if($title->getNamespace() == NS_FILE) { |
253 | 255 | $ntitle = Title::newFromText($title->mDbkeyform); |