mediawiki/smw-file-protect
Composer 安装命令:
composer require mediawiki/smw-file-protect
包简介
Protects files and namespaces in Semantic MediaWiki based on user rights and properties.
README 文档
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.
DISCLAIMER: Only Lockdown functions are currently working. SMW ones are disabled for now.
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
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2015-06-11