Manual:User rights (older versions)/fr
Cette page explique l'assignation de droits aux utilisateurs et l'utilisation de $wgGroupPermissions, $wgAddGroups/$wgRemoveGroups, $wgGroupsAddToSelf/$wgGroupsRemoveFromSelf and Special:Userrights.
Voir Manual:User rights/fr pour les droits des utilisateurs et les groupes d'utilisateurs en général.
Contents |
[edit] Paramétrage par défaut
| Version de MediaWiki: | 1.5 et suivantes |
Le paramétrage par défaut est le suivant :
-
$wgGroupPermissions['bureaucrat']['userrights'] = true;
Ceci signifie qu'un utilisateur du groupe 'bureaucrat' peut ajouter ou supprimer n'importe quel groupe en utilisant Special:UserRights. Les paramètres par défaut peuvent être surchargés dans le fichier LocalSettings.php file du site racine.
[edit] Gestion des droits utilisateurs de certains groupes
Ceci peut se faire en utilisant $wgAddGroups et $wgRemoveGroups. Fonctionnalité introduite dans la version 1.11, comportement modifié dans la version 1.12. Pour les versions précédentes, vous devez utiliser une extension.
[edit] Version 1.11
| Version de MediaWiki: | 1.11 uniquement |
Renseignez les paramètres suivants dans votre fichier LocalSettings.php :
Ce qui est ci-dessous sont des exemples, en supposant que vous n'avez encore rien modifié (donc 'bureaucrat' a toujours la permission par défaut 'userrights').
- Exemple : Ceci autorise les utilisateurs du groupe spécifié à supprimer des groupes. En revanche, ceci ne les autorise pas à en ajouter.
$wgRemoveGroups['bureaucrat'] = true;
- Exemple: Ceci autorise les utilisateurs du groupe spécifié à ajouter des utilisateurs dans les groupes spécifiés. En revanche, ceci ne les autorise pas à en supprimer.
$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot' );
- Exemple: Ceci autorise les utilisateurs du groupe 'sysop' ajouter et supprimer le groupe spécifié.
$wgAddGroups['sysop'] = array( 'bot' ); $wgRemoveGroups['sysop'] = array( 'bot' ); $wgGroupPermissions['sysop']['userrights'] = true;
[edit] Version 1.12
| Version de MediaWiki: | 1.12 et suivantes |
Here are some examples, assuming you haven't changed anything yet (so bureaucrat still has his default 'userrights' right).
- Example: If a group (bureaucrat in this case) can remove any right. Bureaucrat can't add any groups.
$wgRemoveGroups['bureaucrat'] = true; $wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface.
- Example: If a group (bureaucrat in this case) can add only some groups (sysop and bot groups in this case). Bureaucrat can't remove any group.
$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot' ); $wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface.
- Example: You want a sysop to be able to add/remove the bot group, and a bureaucrat be able to add/remove all groups.
Set the following in your LocalSettings.php file:
$wgAddGroups['sysop'] = array( 'bot' ); $wgRemoveGroups['sysop'] = array( 'bot' );
- This is for sysops. A bureaucrat has the 'userrights' right by default, so you don't need to set this unless you changed it in your LocalSettings.php.
[edit] Managing user rights of users on foreign wikis
| Version de MediaWiki: | 1.12 and after |
This can be set using the right "userrights-interwiki", for example:
$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
All wikis you want to manage should be added to $wgLocalDatabases. You can add this setting to LocalSettings.php (e.g. $wgLocalDatabases = array('cool' => 'coolwiki', 'foo' => 'foowikidb');)
In pre-1.12 versions you have to use Extension:Makesysop.
[edit] Automatically promote users
| Version de MediaWiki: | 1.12 and after |
This can be done using $wgAutopromote. By default, there is a group "autoconfirmed". Until 1.13 there was another default group called "emailconfirmed":
$wgAutopromote = array( 'autoconfirmed' => array( '&', array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ), array( APCOND_AGE, &$wgAutoConfirmAge ), ), 'emailconfirmed' => APCOND_EMAILCONFIRMED, );
[edit] Allow users to manage groups specifically on themselves
| Version de MediaWiki: | 1.12 and after |
- $wgGroupsAddToSelf can be set to allow users to add groups to themselves only.
- $wgGroupsRemoveFromSelf can be set to allow users to remove groups from themselves only.
This replaces Extension:Resign.
[edit] Extensions
There are various extensions for user rights management. See Category:User rights extensions for a full list of them. Below are alternative ways described using core instead of extensions.
[edit] GiveRollback
Alternative ways for 1.11 and 1.12. Note that the actions are now logged in Special:Log/rights, not in Special:Log/gvrollback.
| Version de MediaWiki: | 1.11 only |
- Alternative way for the GiveRollback extension, for version 1.11 only.
Do not forget to replace 'other groups' by the groups a bureaucrat should be able to add/remove, e.g. 'sysop'!
$wgAddGroups['bureaucrat'] = array( 'bot', 'other groups' ); $wgRemoveGroups['bureaucrat'] = array( 'bot', 'other groups' ); $wgGroupPermissions['bureaucrat']['userrights'] = true; # They need access to Special:Userrights $wgGroupPermissions['rollback']['rollback'] = true; # Add the actual group
| Version de MediaWiki: | 1.12 only |
- Alternative way for the GiveRollback extension, for version 1.12 only.
Do not forget to replace 'other groups' by the groups a bureaucrat should be able to add/remove, e.g. 'sysop'!
$wgAddGroups['bureaucrat'] = array( 'rollback', 'other groups' ); $wgRemoveGroups['bureaucrat'] = array( 'rollback', 'other groups' ); $wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface $wgGroupPermissions['rollback']['rollback'] = true; # Add the actual group
[edit] MakeBot
Alternative ways for 1.11 and 1.12. Note that the actions are now logged in Special:Log/rights, not in Special:Log/makebot.
| Version de MediaWiki: | 1.11 only |
- Alternative way for the MakeBot extension, for version 1.11 only.
Do not forget to replace 'other groups' by the groups a bureaucrat should be able to add/remove, e.g. 'sysop'!
$wgAddGroups['bureaucrat'] = array( 'bot', 'other groups' ); $wgRemoveGroups['bureaucrat'] = array( 'bot', 'other groups' ); $wgGroupPermissions['bureaucrat']['userrights'] = true; # They need access to Special:Userrights
| Version de MediaWiki: | 1.12 only |
- Alternative way for the MakeBot extension, for version 1.12 only.
Do not forget to replace 'other groups' by the groups a bureaucrat should be able to add/remove, e.g. 'sysop'!
$wgAddGroups['bureaucrat'] = array( 'bot', 'other groups' ); $wgRemoveGroups['bureaucrat'] = array( 'bot', 'other groups' ); $wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface
[edit] Wikimedia
Les sites Wikimedia utilisent un schéma d'assignation des droits d'utilisateurs différent.
- Bureaucrats can't access the whole Special:Userrights anymore, they can add the groups 'bot', 'sysop' and 'bureaucrat', and they can only remove 'bot'. Bureaucrats can access Special:Makesysop and Special:Makebot. Before 28 December 2007 (see bug 11645), they could only access those special pages, and not the part of Special:Userrights.
- Stewards can access the whole Special:Userrights on Meta-Wiki and can remove and add all groups, including extra, optional groups of extensions such as 'checkuser', 'import' etc.
[edit] See also
| Langue : | English • Français • 日本語 |
|---|
