Extension:PluggableAuth/Hooks/PluggableAuthUserAuthorization/fr
Appearance
Pour plus d'information sur la manière d'attacher des accroches (hooks), voir Manuel:Accroches.
Pour des exemples d'autres extensions qui utilisent cette accroche, voir Category:PluggableAuthUserAuthorization extensions/fr .
Détails
- UserIdentity $user - l'objet User
- bool &$authorized - Valeur de retour booléenne (
truesi autorisé,falsedans le cas contraire)
The possible return values for the handler are defined in Manual:Hooks.
In particular, if there has not been an error, the hook function should return no value or null to allow other handlers to run or it should return false to prevent further handlers from running.
It is, therefore, possible that the value of $authorized passed in may be false from a previous handler invocation that returned no value or null.
The handler may choose to override that value or to leave it unchanged.