Manual:$wgBlockDisablesLogin/zh

Category:MediaWiki configuration settings/zh#BlockDisablesLoginCategory:MediaWiki configuration settings introduced in version 1.16.0/zh#BlockDisablesLoginCategory:MediaWiki configuration settings still in use/zh#BlockDisablesLoginCategory:Permission variables/zh#BlockDisablesLogin
访问: $wgBlockDisablesLogin
如果设为true,则禁止被封禁的用户登录
引进版本:1.16.0 (r61694)
移除版本:仍在使用
允许的值:()
false

详情

如果设为true,所有被封鎖的使用者都會被登出,並且未來的登入嘗試將會失敗。 At runtime, any extra rights blocked users might have are removed as well (which is relevant when the blocked user has an already existing session).

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 anonymous users also blocks reading pages in $wgWhitelistRead.

注释

When using this with a public wiki, or a wiki that allows unregistered editing, the effect of logging out registered blocked users may actually be adverse. Unless the user's IP address is also blocked (whether directly or via 自动封禁), logging the user out will again allow reading and editing as an IP address.

替代

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

Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.16.0/zh Category:MediaWiki configuration settings still in use/zh Category:Permission variables/zh