Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

mcl-de/CategorieAccessRestriction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CategorieAccessRestriction

Idea based on Andrés Orencio Ramírez Pérez project on Mediawiki (http://www.mediawiki.org/wiki/Extension:Restrict_access_by_category_and_group)

Installation

Using git clone

  • Clone the extension in your MediaWiki extension folder

Using source files

  • Create folder called CategorieAccessRestriction in your extension folder
  • Copy all files in yout CategorieAccessRestriction folder

General

  • Now edit LocalSettings.php and add the following lines
require_once("$IP/extensions/CategorieAccessRestriction/CategorieAccessRestriction.php");
  • Now add the Pattern
$wgCARPattern = '//';

Usage

The $wgCARPattern is a RegEx pattern which matches the categories on a pages, and these matches are needed to the user to access the page, otherwise he will get a ACCESS DENIED. For example to match all groups starting with "CAR_":

'/CAR_/'

the pattern is case sensitive.

About

MediaWiki extension to restrict access by category

Resources

Stars

Watchers

Forks

Packages

No packages published