Skip to content

Extension to protect access to files based on which pages images are embedded and the SMW properties assigned to that page.

Notifications You must be signed in to change notification settings

ProteoWiki/SMWFileProtect

Repository files navigation

SMWFileProtect

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

About

Extension to protect access to files based on which pages images are embedded and the SMW properties assigned to that page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages