From 0deecb77962fa32c23b72ff4d56bb49cb4c44dcb Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 7 Oct 2009 14:28:26 +0000 Subject: [PATCH] Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks on specific pages. --- includes/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/User.php b/includes/User.php index a12349f0a4..7b9b5aeff9 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1338,6 +1338,9 @@ class User { $blocked = false; wfDebug( __METHOD__ . ": self-talk page, ignoring any blocks\n" ); } + + wfRunHooks( 'UserIsBlockedFrom', array( $this, $title, &$blocked, &$allowUsertalk ) ); + wfProfileOut( __METHOD__ ); return $blocked; } -- 2.20.1