Last modified: 2014-08-18 04:55:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38489, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36489 - 'Protect' user right does not allow a user to protect pages up to their editing level
'Protect' user right does not allow a user to protect pages up to their editi...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Page protection (Other open bugs)
1.20.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-03 17:50 UTC by Hersfold
Modified: 2014-08-18 04:55 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Hersfold 2012-05-03 17:50:33 UTC
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.
Comment 1 Tyler Romeo 2012-08-08 12:55:45 UTC
To clarify, are these the exact steps you mean:

1. Create a group "level1editor" with the "level1" and "protect" permissions.
2. Create a group "sysop" with the "level1", "level2", and "protect" permissions.
3. As a sysop, protect a page using level2 protection.
4. As a level1editor, attempt to change protection of the aforementioned page.

If so, then I'm not sure what the bug is. Currently pages can only be protected using one level of protection at a time (meaning they cannot be simultaneously level1 and level2 protected). So if a page is level2 protected, and you're only a level1editor, you shouldn't have permissions to change protection of that page. And I've found this is exactly what happens.
Comment 2 TeleComNasSprVen 2014-05-10 10:34:03 UTC
Hersfold, are you still experiencing this bug? As Tyler Romeo notes above, I'm not sure what the ticket is for, and the current behavior seems to be as intended.
Comment 3 Andre Klapper 2014-06-10 11:31:07 UTC
Hersfold, can you please answer comment 2?
Comment 4 Andre Klapper 2014-08-17 11:45:30 UTC
Unfortunately closing this report as no further information has been provided.

Hersfold: Please feel free to reopen this report if you can provide the information asked for in comment 2 and comment 3, and if this still happens. Thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links