mediawiki/smw-file-protect

根据链接页面保护文件的扩展

安装: 9

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 0

公开问题: 0

类型:mediawiki-extension

dev-master 2015-06-15 16:44 UTC

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)阻止查看。