Extension:PermissionFunctions

(($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

History

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