Manual:$wgImgAuthDetails

From Linux Web Expert

Revision as of 16:22, 29 September 2023 by imported>Krinkle (Fix svn link to include code review comments (phab:rSVN -> rev:r))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Files and file uploads</translate>: $wgImgAuthDetails
Display reason access to uploaded file was denied to users (img_auth only)
<translate> Introduced in version:</translate>1.16.0 (r55800)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(boolean)
<translate> Default value:</translate>false

Details

This configuration variable is only applicable if you are using Image Authorization.

For security reasons, you usually don't want your users to know why access was denied, just that it was. When set to false (default), the denial screen is generic.

If you want to change this, you can set $wgImgAuthDetails to 'true' and MediaWiki will give the user the reason why access was denied.

References