Extension:PermissionFunctions

<?php /*(($disable$))

Purpose
Provides a collection of permission management functionality.

Features

 * Magic Word 'checkPermission' : verifies if 'user' is allowed 'right' and if *not* then the page 'Permission Error' is served.
 * This function is rather useful for building 'forms'
 * Rather only helpful when used in a 'ParserPhase2' context (e.g. (($#checkpermission|edit$)) )
 * Static function 'getpermissionline'
 * Meant to be itereated with using 'ForeachFunction' magic words

Usage
E.g. check to see if the current user has the 'edit' right
 * (($#checkpermission|edit$))

Dependancies

 * StubManager extension

Installation
To install independantly from BizzWiki:
 * Download & Install Extension:StubManager extension
 * Dowload all this extension's files and place in the desired directory
 * Apply the following changes to 'LocalSettings.php' after the statements of Extension:StubManager:

History

 * Added setting of contextual variable upon permission error
 * Added clearing of page's text upon permission error