Jump to content

Manual:$wgAllowPrefChange

From mediawiki.org
Authentication: $wgAllowPrefChange
Policies for how each preference is allowed to be changed, in the presence of external authentication.
Introduced in version:1.16.0 (r53497)
Removed in version:1.22.0 (Gerrit change 54900; git #36cade5f)
Allowed values:(array)
Default value:array()

Details

[edit]

Policies for how each preference is allowed to be changed, in the presence of external authentication. The keys are preference keys, e.g., 'password' or 'emailaddress' (see Preferences.php et al.). The value can be one of the following:

  • local - Allow changes to this pref through the wiki interface but only apply them locally (default).
  • semiglobal - Allow changes through the wiki interface and try to apply them to the foreign database, but continue on anyway if that fails.
  • global - Allow changes through the wiki interface, but only let them go through if they successfully update the foreign database.
  • message - Allow no local changes for linked accounts. Replace the change form with a message provided by the auth plugin, telling the user how to change the setting externally (maybe providing a link, etc.). If the auth plugin provides no message for this preference, hide it entirely.

Note

[edit]

Accounts that are not linked to an external account are never affected by this setting. You may want to look at $wgHiddenPrefs instead. $wgHiddenPrefs supersedes this option.