Document that the GetUserBlock hook may pass null instead of a block
Change-Id: I776362564b8caff3c4ab0eb38eb5ef63034e0f51
This commit is contained in:
parent
aaf0006a5a
commit
e915f9538a
1 changed files with 1 additions and 1 deletions
|
|
@ -1733,7 +1733,7 @@ blocks can be seen using CompositeBlock::getOriginalBlocks()
|
|||
$user: User targeted by the block
|
||||
$ip: string|null The IP of the current request if $user is the current user
|
||||
and they're not exempted from IP blocks. Null otherwise.
|
||||
&$block: AbstractBlock object
|
||||
&$block: AbstractBlock|null The user's block, or null if none was found.
|
||||
|
||||
'getUserPermissionsErrors': Add a permissions error when permissions errors are
|
||||
checked for. Use instead of userCan for most cases. Return false if the user
|
||||
|
|
|
|||
Loading…
Reference in a new issue