Extension:ImageRefer

Usage
This extension is part of Lab Service Wiki, developed thanks to CRG. You need to have image authorization properly set up (see below).

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
If we want to restrict user access using a string property that contains a username (eg. the creator of the page associated to the image) and a boolean one which enables or disables their access, we need to add these two parameters in. Their values are the properties used.


 * -- String type property (change 'Request from' with suitable one). It can be a username (for instance the creator of the page associated to the image).
 * -- Boolean property (change 'Visible' with suitable one).

Parallelly or alternately, we can use a string property that can contain a list of users (comma separated) that will be granted direct access


 * -- String type property (change 'Viewer' with suitable one)

User rights
We can define which users can overcome image restriction access by adding associated groups to the following array:
 * -- sysop and team groups overcome image restriction.

TODO

 * Make it more easily customizable.
 * Instead of comma-separated, make it accept other separators by using another parameter.