Manual:$wgWhitelistRead/pt
From Linux Web Expert
<translate> User rights, access control and monitoring</translate>: $wgWhitelistRead | |
---|---|
Páginas que o utilizador anónimo poderá ver. |
|
<translate> Introduced in version:</translate> | 1.1.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (matriz de nomes de página), ou false |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Detalhes
If a group of users is blocked from viewing the wiki by using the $wgGroupPermissions configuration parameter...
$wgGroupPermissions[...]['read'] = false;
...you may still want them to be able to view certain key pages, in particular the main page! This setting holds an array of page names that all users are allowed to view, regardless of their group permissions.
A recommended minimum which allows everyone to view the home page and the login screen as well as loading CSS/JS customizations is as follows:
- MediaWiki ≥ 1.18.1[1]
$wgWhitelistRead = [
'Main Page',
'MediaWiki:Common.css',
'MediaWiki:Common.js'
];
"Main Page" uses spaces instead of underscores between words.
Ver também