Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks on specific pages.

This commit is contained in:
Andrew Garrett 2009-10-07 14:28:26 +00:00
parent 2eb48db487
commit 0deecb7796

View file

@ -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;
}