Manuel:$wgGrantPermissions
Droits utilisateur, contrôle d'accès et supervision: $wgGrantPermissions | |
---|---|
Used to define grants and assign permissions to them. |
|
Introduit dans la version : | 1.27.0 (Gerrit change 259062; git #ef5bd734) |
Retiré dans la version : | Encore utilisé |
Valeurs autorisées : | (tableau à deux dimensions de booléens) |
Valeur par défaut : | Voir DefaultSettings.php |
Autres paramètres : Alphabétique | Par Fonction |
Détails
$wgGrantPermissions is a two-dimensional array indexed by grants and available permissions.
La valeur est un booléen; false
équivaut à supprimer la clé.
Grants are used to give external software limited access to an account; for example, by OAuth or by bot passwords. When a user account is accessed via some grants-based mechanism, to use some permission both an appropriate user group and an appropriate grant is required.
This configuration value should usually be set by extensions, not site administrators.
New grants can simply be created by using a new first-level key.
De telles clés doivent être ajoutées également dans $wgGrantPermissionGroups
.
Grants are managed internally by the MWGrants class, and can be viewed via Special:ListGrants.
The user-visible name of a grant can be defined via the grant-<name>
message.
Exemple
$wgGrantPermissions['basic']['ipblock-exempt'] = true;
This allows external tools using a user account to ignore IP blocks if the user has that ability and has given the basic
grant to the tool.