mediawiki / smw-file-protect
根据链接页面保护文件的扩展
dev-master
2015-06-15 16:44 UTC
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-09-15 02:19:22 UTC
README
扩展,用于根据图片嵌入的页面和页面分配的SMW属性来保护文件访问。
请在设置前先检查 http://www.mediawiki.org/wiki/Manual:Image_Authorization。
参数
$SMWFileProtectRights = array("sysop"); // 哪些角色始终允许查看文件,无论链接的页面是什么
$SMWFileProtectReferUsers = array("Has User"); // 指向链接到其他页面的页面的属性,例如用户页面,假设页面是为用户创建或分配的
$SMWFileProtectReferProps = array("Is Visible"); // 可以用来授予页面权限的布尔属性。
$SMWFileProtectReferNS = true; // 这允许根据Lockdown扩展(https://www.mediawiki.org/wiki/Extension:Lockdown)阻止查看。