https://bugzilla.wikimedia.org/show_bug.cgi?id=36489
Web browser: ---
Bug #: 36489
Summary: 'Protect' user right does not allow a user to protect
pages up to their editing level
Product: MediaWiki
Version: 1.20-git
Platform: All
URL: https://bugzilla.wikimedia.org/show_bug.cgi?id=36282
OS/Version: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: Page protection
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
When attempting to duplicate bug 36282 it was discovered that members of a user
group with the 'protect' user right, and sufficient rights to edit through at
least one level of protection, were unable to issue protection up to the
highest level they were able to edit.
To replicate:
1. In LocalSettings.php, add the following lines. These should replace the
default protection levels with one called "level1" and another "level2". It
also creates a new user group called "level1editor" that is allowed to edit
"level1" protected pages and place protection on pages up to "level1":
$wgRestrictionLevels = array('', 'level1', 'level2');
$wgGroupPermissions['level1editor']['level1'] = true;
$wgGroupPermissions['level1editor']['protect'] = true;
$wgGroupPermissions['sysop']['level1'] = true;
$wgGroupPermissions['sysop']['level2'] = true;
2. Log into a bureaucrat account. Give yourself +sysop and +level1editor.
3. Go to a random page and ensure you can issue all levels of protection.
4. Go back to Special:Userrights and remove your sysop flag.
5. Go back to the page you looked at before. The "protect" or "change
protection" tab should no longer be present.
For more information, see comments on bug 36282.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l