Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks on specific pages.
This commit is contained in:
parent
2eb48db487
commit
0deecb7796
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue