Question

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.

Was it helpful?

Solution

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;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top