tags:

views:

349

answers:

2
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = true;
//$wgGroupPermissions['Human Resource'] = $wgGroupPermissions['user'];
//$wgGroupPermissions['Human Resources']['edit'] = true;
$wgGroupPermissions['Human Resource']['edit'] = true;
//$wgGroupPermissions['Human Resources']['protect'] = true; // 1.5.0
$wgGroupPermissions['*']['createaccount'] = false;
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['read'] = false;

I have added a group, but in my special pages i cannot add a user to this group in MediaWiki

+1  A: 

You need to go to the Special:UserRights page to change user's groups. To be able to go to that page you need to be in a group with the 'userrights' right. By default, only the bureaucrat group has that right.

You can check what groups you are a member of in Special:ListUsers and check what rights those groups have in Special:ListGroupRights

Adrian Archer
I am with all rights as u mentioned, the group is visible but when i select a user and check the group its not adding to the user
Does your group show up in Special:ListGroupRights
Adrian Archer
Yes it does show
Are you able to add users to the predefined groups, ie. Sysop or Bots?
Adrian Archer
A: 

I see that your custom user group's name, "Human Resources," contains a space.

I recently had the exact same problem and it turned out that the user rights page chokes if you try to add a user to a group whose name contains a space. Calling the group, say, "HumanResources" should fix the problem. This is a new development, as older versions of Mediawiki supported user groups with spaces without any problems.