Extension:Restrict access by category and group

What can this extension do?
This extension can restrict access to users by group and document category.

Even Mediawiki is a free/public access colaborative document tool, sometimes can be helpful, especially in business environments, have a restircted view of wiki documents.

For example, department's financial documents should not be accessed by customer services users.

In this extension you can establish four access restrictions:
 * Public: White pages: those are public pages that can be accessed by everybody. This is helpful when you have a private mediawiki and anonymous can only authenticate and see Main page. See $wgWhitelistRead.
 * Public categories: those are all categories that aren't in your gropus.php file. Those categories are public.
 * No public categories: those are all categories that are in your groups.php file. Those categories are restricted. Documents belong this categories may be accessed by users who belong to at least one of this groups.
 * Private categories:those are all categories that are in your groups.php file with [private] = true option. These categories are private, and only users who belong to all categories closed to which the document will have access.

Usage
All documents you want to restrict access to, you must to add to a category. So you have multiples categories.

Files:
 * $IP/extensions/rabcg/rabcg.php: this is the extension.
 * $IP/extensions/rabcg/groups.php: this is the group catalog.

In your gruops.php file, you must add the categories you want to make no public or private. This is made by group definition. For Example:

To apply this category to your document, you only must to write:

This is only one more category of your document.

Previously (after create the groups in you groups.php file), you must make groups assignments to users by Especial:Userrights page.

Download instructions
This extension is not yet in svn repository. So you must copy&paste the following code as is explained in Installation.

Installation
You must follow this steps:
 * Create a directory named: $IP/extensions/rabcg ($IP is your mediawiki installation directory).
 * Create a file named $IP/extensions/rabcg/rabcg.php with this content:
 * Create a file named $IP/extensions/rabcg/groups.php with all groups do you want:
 * Add the following to LocalSettings.php:

Configuration parameters
There isn't.

User rights
Free.