Manual:$wgGrantPermissions

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgGrantPermissions and the translation is 38% complete.

Other languages:
English • ‎magyar • ‎polski • ‎日本語
利用者アクセス: $wgGrantPermissions
Used to define grants and assign permissions to them.
導入されたバージョン:1.27.0 (Gerrit change 259062; git #ef5bd734)
除去されたバージョン:使用中
許容される値:(真偽値の2次元配列)
既定値:DefaultSettings.php を参照してください
その他の設定: アルファベット順 | 機能順

詳細

$wgGrantPermissions is a two-dimensional array indexed by grants and available permissions. The value is a boolean; false is equivalent to unsetting the key.

Grants are used to give external software limited access to an account; for example, by OAuth or by bot passwords. When a user account is accessed via some grants-based mechanism, to use some permission both an appropriate user group and an appropriate grant is required.

This configuration value should usually be set by extensions, not site administrators.

New grants can simply be created by using a new first-level key. Such keys should be added to $wgGrantPermissionGroups as well.

Grants are managed internally by the MWGrants class, and can be viewed via Special:ListGrants. The user-visible name of a grant can be defined via the grant-<name> message.

$wgGrantPermissions['basic']['ipblock-exempt'] = true;

This allows external tools using a user account to ignore IP blocks if the user has that ability and has given the basic grant to the tool.

関連項目