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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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;