Skip to content

Instantly share code, notes, and snippets.

View Remedan's full-sized avatar

Vojtěch Balák Remedan

View GitHub Profile
diff --git includes/Article.php includes/Article.php
index b07f309..6bf578b 100644
--- includes/Article.php
+++ includes/Article.php
@@ -414,6 +414,12 @@ class Article extends Page {
# Another whitelist check in case getOldID() is altering the title
$permErrors = $this->getTitle()->getUserPermissionsErrors( 'read', $wgUser );
if ( count( $permErrors ) ) {
+ if($this->mTitle->isRestricted()){
+ $wgOut->restrictGroupRequired();