On Tue, Mar 19, 2013 at 1:15 PM, Pericles Sobreira <pericles.sobreira@gmail.com> wrote:
When I protect a certain page
(action=protect&protections=edit=G8), all users of the wiki are
blocked to edit it (as expected), but also, the participants of G8
(the group that should edit this page)... someone knows this issue?
Protection levels in MediaWiki are on the basis of user rights, not
groups ("sysop" is special-cased). So when you say
"protections=edit=G8", you're saying that anyone with the G8 user right
is allowed to edit the page.
The solution is to add that right to the G8 group:
$wgGroupPermissions['G8']['G8'] = true;
Note you'll probably also want to add that G8 right to sysops, or they won't be able to actually apply the G8 protection level.
See
https://www.mediawiki.org/wiki/Manual:$wgRestrictionLevels for a more detailed explanation.
I initially created the following two lines in LocalSettings.php:
$wgGroupPermissions['G8']['edit'] = false;
$wgGroupPermissions['G8']['read'] = false;
Note that just means members of the G8 group aren't allowed to read or edit pages (although they could be allowed via membership in other groups, e.g. '*' or 'user').
And after, I changed these permissions to 'true':
$wgGroupPermissions['G8']['edit'] = true;
$wgGroupPermissions['G8']['read'] = true;
That just means members of the G8 group are allowed to read and edit pages.
I have also modified the following line in the DefaultSettings.php file:
$wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop','G1','G2','G3','G4','G5','G6','G7','G8');
That's what allows you to use "G8" as a protection level.