mediawiki / smw-file-protect
Extension for protecting files depending on the linked pages
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:mediawiki-extension
Requires
- php: >=5.3.0
- composer/installers: 1.*,>=1.0.1
- mediawiki/semantic-media-wiki: >=2.0
This package is auto-updated.
Last update: 2024-12-15 02:46:23 UTC
README
Extension to protect access to files based on which pages images are embedded and the SMW properties assigned to that page.
Please check http://www.mediawiki.org/wiki/Manual:Image_Authorization for proper setup first.
Parameters
$SMWFileProtectRights = array("sysop"); // Which roles are always allowed to view files no matter the linked pages
$SMWFileProtectReferUsers = array("Has User"); // Property that refers to pages that link to other pages, for instance user pages, assuming that a page is created or assigned to a user
$SMWFileProtectReferProps = array("Is Visible"); // Boolean property that can be used to grant permission to the page.
$SMWFileProtectReferNS = true; // This allows to block viewing based on Lockdown Extension https://www.mediawiki.org/wiki/Extension:Lockdown