mediawiki/smw-user-protect 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediawiki/smw-user-protect

最新稳定版本:0.1.2

Composer 安装命令:

composer require mediawiki/smw-user-protect

包简介

Extension for protecting pages from users depending on certain semantic properties

README 文档

README

Extension for protecting specifically pages from users depending on their semantic properties.

Parameters

// Groups that are allowed always

$GLOBALS['wgSMWUserProtectGroups'] = array( 'sysop', 'team' );

// User Property

$GLOBALS['wgSMWUserProtectProps'] = array( 'Has User' );

// Namespaces with protection

$GLOBALS['wgSMWUserProtectNS'] = array( NS_REQUEST, NS_SAMPLE, NS_PROCESS );
$GLOBALS['wgSMWUserProtectNSParent'] = array( NS_REQUEST );

// Edit prohibited depending on the value

$GLOBALS['wgSMWUserProtectEditClose'] = array (
	NS_REQUEST => array(
		"Has Request Status" => array( "Accepted", "Closed", "Discarded" )
	)
);

// If visiting user is not in the groups above, avoid reading User pages

$GLOBALS['wgSMWUserProtectUserPages'] = true;

// Block edition of user pages by non-owning users. It actually makes sense if previous wgSMWUserProtectUserPages is false

$GLOBALS['wgSMWUserProtectEditUserPages'] = true;

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-09-14