Jump to content

手册:$wgBlockDisablesLogin

From mediawiki.org
This page is a translated version of the page Manual:$wgBlockDisablesLogin and the translation is 77% complete.
访问: $wgBlockDisablesLogin
如果设为true,则禁止被封禁的用户登录
引进版本:1.16.0​(r61694
移除版本:仍在使用
允许的值:(布尔值)
默认值:false

详情

如果设为true,所有被封鎖的使用者都會被登出,並且未來的登入嘗試將會失敗。 在封禁有效期间,被封禁的用户可能拥有的任何权限都会被移除(这和当被封禁的用户已有已存在的会话的情况相关)。

Partial blocks allow the user to log in but grant them only the $wgGroupPermissions of an unregistered user, with no creating or moving permissions (except for changing user rights that are not defined by the userrights permission). If an IP is soft blocked, the user can still edit logged in even when the user is partially blocked. If an IP is hard blocked, the user cannot have user rights except for the ip block exemption which enables them to have user rights.

Partial blocks when reading is blocked for registered users also blocks reading pages in $wgWhitelistRead . For anonymous users, sitewide blocks blocks the login page so don’t block IP's and partial blocks lets you ban IP's from reading pages on the whitelist.

注释

将此参数用于一个允许未注册用户编辑的开放维基时,使被封禁的用户退出登录的效果可能实际上不利。 除非此用户的IP地址也被封禁(无论是直接封禁还是通过自动封禁 封禁),退出登录会再次允许以IP地址身份阅读和编辑。

替代

An alternative to this setting might be using $wgAutopromote with APCOND_BLOCKED to create a group that revokes certain rights.