Creating a new group is just as easy as it was to block users from doing certain things in our wiki. In this example, we are going to create a group called DepartmentAuthors. We will give this group the ability to create pages and edit pages.
1. Open your
LocalSettings.php
file for editing.2. Locate the lines that grant permission to those in the Users group to create pages and edit pages. They are:
$wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['user']['createpage'] = true;
3. Change the parameter in each line from
true
tofalse
.4. Right above the section of code that reads:
// Implicit group for accounts that pass $wgAutoConfirmAge
Enter the following code:
//Group for DepartmentAuthors $wgGroupPermissions['DepartmentAuthors']['edit'] = true; $wgGroupPermissions['DepartmentAuthors']['createpage'] = true;
5. Save your settings.
7. Navigate to Special pages | User group rights. The URL for the sample...