Manual:$wgGroupPermissions/zh

详情
$wgGroupPermissions is a two-dimensional array indexed by user group and available permissions. 值可以被设定为 来授予权限，设置为 将不授予权限.

Those permissions, which are granted with $wgGroupPermissions, are always cumulative. 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 their 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. Instead use to revoke permissions.

例子
Until REL 1.24:

Since REL 1.25 do in :

这将给所有已注册用户编辑页面的权利.

自定义用户组
你也可以定义你自己的用户组. 用户组的名称不能超过255个字符. 在 或 中定义的组可以通过Special:Userrights界面分配给用户.

例子 (until REL 1.24 or in LocalSettings.php)

 Example  in extension.json (since REL 1.25)

这里创建了一个称为"trustworthy"的用户组.

Now add human readable names for your newly created group to the wiki for the "trustworthy" group, e.g. on page "MediaWiki:Group-trustworthy" in plural "Trustworthy editors" and on page "MediaWiki:Group-trustworthy-member" in singular "Trustworthy editor". This is an optional but recommended step.

这个组的用户拥有与“自动确认”和“机器人”用户组一样的权限. 此外，他们能够删除和保护页面以及巡逻编辑.

获取更多的内容，参见.

默认值
默认值因版本而异. You may find the one which apply to your mediawiki setup in. 访问以了解更多信息

扩展的使用
一些扩展，例如与，添加了新的权限，也可以以相同的方式进行配置和分配.