MediaWiki为新用户设置默认组 [英] MediaWiki Setting a default group for new users

查看:575
本文介绍了MediaWiki为新用户设置默认组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确定这已经在某处得到了回答,但是经过几个小时的搜索后我找不到它.我要做的是允许用户创建自己的帐户,但只有在我授予他们编辑文章的权限之前,用户才可以阅读.我可以弄清楚创建新组所需的部分,但是我很难告诉它给新用户特定的组权限.我可能只是不在正确的地方寻找东西,但是如果有人可以帮助我或者至少将我指向正确的方向,那将不胜感激.

I'm sure this has been answered somewhere but I can't find it after a few hours of searching. What I want to do is allow users to to create their own account but only be able to read until I give them the permissions to edit articles. I can figure out the part needed to create a new group but I'm having trouble telling it to give new users a specific group permission. I'm probably just not looking in the right places but if someone could help me out or at least point me in the right direction that would be much appreciated.

推荐答案

尝试以另一种方式进行操作:为默认用户组授予只读权限,然后将用户提升为受信任的用户组.

Try doing it the other way around: Give the default user group read only permission, and then elevate users to a trusted users group.

$wgGroupPermissions['*']['edit']             = false;
$wgGroupPermissions['*']['createpage']       = false;
$wgGroupPermissions['user']['edit']          = false;
$wgGroupPermissions['user']['createpage']    = false;
$wgGroupPermissions['trusted']['edit']       = true;
$wgGroupPermissions['trusted']['createpage'] = true;

这篇关于MediaWiki为新用户设置默认组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆