Manual:Hooks/getUserPermissionsErrors/fr

Détails

 * $title - Objet titre à vérifier
 * $user - Objet utilisateur actuel
 * $action - Action en cours de vérification
 * &$result - Erreur de droit utilisateur à ajouter. Si aucun, renvoie true. $result can be returned as a single error message key (string), or an array of error message keys when multiple messages are needed (although it seems to take an array as one message key with parameters?).

Différences avec
Both hooks are typically run when checking for proper permissions in. When it is desirable to skip potentially expensive cascading permission checks, only getUserPermissionsErrors is run. This behavior is suitable for nonessential UI controls in common cases, but not for functional access control. This behavior may provide false positives, but should never provide a false negative.