Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgGroupPermissions and the translation is 55% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎日本語 • ‎한국어 • ‎polski • ‎português do Brasil • ‎русский • ‎中文
User Access: $wgGroupPermissions
Use this to set access rights for groups and users in these groups.
導入されたバージョン: 1.5.0 (r9367)
除去されたバージョン: 使用中
可能な値: 真偽値の複雑な配列。
既定値: 下記参照。
他の設定: アルファベット順 | 機能順


$wgGroupPermissions is a two-dimensional array indexed by user group and available permissions. 値は、権限を付与する場合はTRUE、付与しない場合はFALSEのいずれかになります。

$wgGroupPermissionsで許可されているアクセス権は、常に累積されます。 If a user is member of different groups, then the user will get a right if it is granted to at least one of these groups even if it is not granted to his other groups. In other words, If one of the user's groups has a right, then it is not possible to take the right away using $wgGroupPermissions. Instead use $wgRevokePermissionsManual:$wgRevokePermissions to revoke permissions.

$wgGroupPermissions['user']['edit'] = true;



あなた自身の利用者グループを定義することもできます。 利用者グループの名前は255文字以内にしてください。 [1] The groups, which have been defined either in DefaultSettings.php or in LocalSettings.php, can be assigned to users through the wiki Special:Userrights interface.

# Start with assigning the default permissions from group "user"
$wgGroupPermissions['Trustworthy'] = $wgGroupPermissions['user'];
# Now modify these rights:
$wgGroupPermissions['Trustworthy']['delete'] = true;
$wgGroupPermissions['Trustworthy']['protect'] = true;
$wgGroupPermissions['Trustworthy']['patrol'] = true;
$wgGroupPermissions['Trustworthy']['purge'] = true; # delete the cache of a page

This creates a group called "Trustworthy". Users of that group have the same permissions as users from the group "user". However, they will be able to delete and protect pages, to patrol edits and to directly purge cached pages.

For in-depth documentation, see Manual:利用者権限Manual:User rights.

警告 警告: Functionality to make pages inaccessible has not been extensively tested for security. Use at your own risk!


Default values vary from version to version. You may find the one which apply to your mediawiki setup in DefaultSettings.phpManual:DefaultSettings.php. 詳細情報は Manual:User rights#Default rightsManual:User rights#Default rights を参照してください。


Some extensions, such as RenameUserExtension:Renameuser or CheckUserExtension:CheckUser, add new rights which can be configured and assigned in the same manner.



  1. $groupテーブル内のug_groupの行の長さを見てください。